主页
Python
Python String zfill() 方法
demo_ref_string_zfill
运行 ❯
×
更改方向
保存代码
更改主题
txt = "50" x = txt.zfill(10) print(x)
0000000050