题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys for line in sys.stdin: a = line.split() strs = a[0] if len(strs)%8 != 0: padding = 8 - len(strs) % 8 strs += '0' * padding for i in range(0,len(strs),8): print(strs[i:i+8])#晒一晒我的offer#