题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
str1 = input()
str1_len = len(str1)
i = 0
while i+8 < str1_len:
print(str1[i:i+8])
i += 8
print(str1[i:].ljust(8,'0'))
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
str1 = input()
str1_len = len(str1)
i = 0
while i+8 < str1_len:
print(str1[i:i+8])
i += 8
print(str1[i:].ljust(8,'0'))
相关推荐