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