题解 | #字符串分隔#

字符串分隔

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-07 16:07
深圳大学 运营
前端飞升:学长,阿里不是卡双非吗,我深也能去吗
点赞 评论 收藏
分享
面了100年面试不知...:今年白菜这么多,冬天可以狂吃了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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