题解 | 字符串分隔
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys s = input() while len(s) > 8: print(s[:8]) s = s[8:] if len(s) < 8: s += "0" * (8 - len(s)) print(s)
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys s = input() while len(s) > 8: print(s[:8]) s = s[8:] if len(s) < 8: s += "0" * (8 - len(s)) print(s)
相关推荐