题解 | #字符串分隔#

字符串分隔

https://www.nowcoder.com/practice/d9162298cb5a437aad722fccccaae8a7

s1 = input()
s2 = ""
while len(s1) % 8 != 0:
    s1 += "0"
for i in range(len(s1)):
    s2 += s1[i]
    if (i + 1) % 8 == 0:
        s2 += "\n"
print(s2)

全部评论

相关推荐

哈哈哈哈哈哈哈哈哈哈这个世界太美好了
凉风落木楚山秋:毕业出路老师不管,你盖个章他好交差就完事了,等你盖完毕业了就不关他事情了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务