python中利用zfill方法自动给数字前面补0 python中有一个zfill方法用来给字符串前面补0,非常有用viewsourceprint?n="123"s=n.zfill(5)asserts== 数字前面补0