题解 | 字符串分隔
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys
s = sys.stdin.readline().strip()
n = len(s)
for i in range(0, n, 8):
group = s[i:i+8]
if len(group) < 8:
group = group + '0'*(8 - len(group))
print(group)


深圳虾皮信息科技有限公司成长空间 530人发布