题解 | #字符串分隔#

字符串分隔

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

def min(s):
    if len(s)<8:
            while len(s)<8:
                s+='0'
    return s

while True:
    try:
        s=input()
        re=[]
        for i in range(0,len(s),8):
            re.append(min(s[i:i+8]))
        for i in re:
            print(i)
    except:
        break

全部评论

相关推荐

不愿透露姓名的神秘牛友
11-19 18:52
七牛云一生之敌I两个...:自我评价删了,其他浓缩为一页
投递字节跳动等公司10个岗位
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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