📜  将1位数字转换为2位python代码示例

📅  最后修改于: 2022-03-11 14:45:09.530000             🧑  作者: Mango

代码示例1
number = 10
print(number) #Output: 10
zero_filled_number = str(number).zfill(3)
print(zero_filled_number) #Output: "010"