题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
s = input() if len(s) % 8 != 0: s += '0'*(8-(len(s)%8)) for i in range(0,len(s),8): print(s[i:i+8])
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
s = input() if len(s) % 8 != 0: s += '0'*(8-(len(s)%8)) for i in range(0,len(s),8): print(s[i:i+8])
相关推荐