题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
while True: try: s = input().strip() while len(s) > 8: print(s[:8]) s = s[8:] print(s.ljust(8,'0')) except: break
还是这样写的最舒服, 区间切片左闭右开
华为机试(python3) 文章被收录于专栏
少壮不努力,老大勤刷题