题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
line = input() s = '' long = 0 for i in line: long += 1 s += i if long == 8 : print(s) s = '' long = 0 if long != 0: for i in range(8-long): s += '0' print(s)#原始一点点的解法#
原始一点点的解法 文章被收录于专栏
尽量不借助面向对象的思想,自己去实习具体过程