python 输出数字位数对齐

imgNum  = 0
dImgOutPath = outputDataPath +'/' + '%04d'% imgNum +'.jpg' #输出4位数,前面空位补0
posted on 2022-01-14 09:49  WenJXUST  阅读(317)  评论(0)    收藏  举报