题解 | #字符串分隔#
字符串分隔
https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7
import sys a = input() count = len(a)//8 left_value = len(a)%8 for i in range(count): for j in range(8): print(a[j + i*8], end='') print() if left_value > 0: for i in range(left_value): print(a[i + count*8], end='') for j in range(8-left_value): print(0, end='') #print("\n")