题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
a=input() if len(a)>0: if len(a)==8: print(a[0:8]) a=[] if len(a)>8: print(a[0:8]) a=a[8:] if len(a)<8: print(a.ljust(8,"0")) a=[]
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
a=input() if len(a)>0: if len(a)==8: print(a[0:8]) a=[] if len(a)>8: print(a[0:8]) a=a[8:] if len(a)<8: print(a.ljust(8,"0")) a=[]
相关推荐