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