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