题解 | #字符串分隔#

字符串分隔

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

input_string = input()
input_length = len(input_string)
        
Quotient= input_length // 8
remainder = input_length % 8
        
for i in range(Quotient):
    print(input_string[8*i:8*i+8])
if remainder != 0:
    print(input_string[-remainder:]+(8-remainder)*'0')
全部评论

相关推荐

身边有人上海、深圳 6、7k 都去了,真就带薪上班了。
小浪_coder:深圳除了一些计算机,UI设计,金融类等一些可以月薪过万的工作之外, 认识很多朋友做运营,营销,文员的工作, 月薪基本都在4-6K左右,还有大把人在干
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
1
分享

创作者周榜

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