Python 数字转 字符串,补零 补0 zfill python 1 转化为 001

str(1).zfill(3)

 

Python 数字转 字符串,补零 补0 zfill

posted @ 2022-03-31 22:45  bH1pJ  阅读(77)  评论(0编辑  收藏  举报