python自动给数字前面补0的方法
时间:2018-12-15来源: 作者: 文章热度: ℃
点评:-python中有一个zfill方法用来给字符串前面补0,非常有用 n = "123" s = n.zfill(5) as
相关python教程:
最新python教程: