摘要: python中有一个zfill方法用来给字符串前面补0,非常有用 n = "123" s = n.zfill(5) assert s == "00123" n = "123" s = n.zfill(5) assert s == "00123" n = "123" s = n.zfill(5) as 阅读全文
posted @ 2018-07-17 20:45 RockNiu2 阅读(3030) 评论(0) 推荐(0) 编辑