📅  最后修改于: 2022-03-11 14:45:30.188000             🧑  作者: Mango
print(a_number)
#OUTPUT
123
number_str = str(a_number)
#Convert `a_number` to a string
zero_filled_number = number_str.zfill(5)
#Pad `number_str` with zeros to 5 digits
print(zero_filled_number)
#OUTPUT
00123