题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys
s = input()
res = ''
n = 0
for i in s:
res += i
n += 1
if n == 8:
print(res)
res = ''
n = 0
if n !=0:
print(res+'0'*(8-n))
查看11道真题和解析