ปลั๊กอินสำหรับไพธอนพิมพ์สะกดรอยตา zeros
# Change the .7 to .n decimal digits including zeros you want to round to:
print('{:.7f}'.format(5.39120))
# >>> '5.3912000'
ยังไงเพื่อเพิ่มสะกดรอยตา zeros ในเบอร์
['{0:05d}'.format(s) for s in range(100)]
ยังไงเพื่อเพิ่มสะกดรอยตา zeros ภาษาไพธอน
text = "hello"
print(text.zfill(10))
Output: '00000hello'