题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
string = input() n = len(string) for i in range(0, n, 8): if i + 8 < n: print(string[i:i+8]) else: print(string[i:] + "0"*(i+8-n))
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
string = input() n = len(string) for i in range(0, n, 8): if i + 8 < n: print(string[i:i+8]) else: print(string[i:] + "0"*(i+8-n))
相关推荐