11.(str).zfill()
zfill(width)
返回一个长度为width的字符串,右对齐 前面补0
str2 = "Good job"
print(str2.zfill(40) )
#(输出) 00000000000000000000000000000000Good job
11.(str).zfill()
zfill(width)
返回一个长度为width的字符串,右对齐 前面补0
str2 = "Good job"
print(str2.zfill(40) )
#(输出) 00000000000000000000000000000000Good job