2022年2月14日 星期一

小數位數及數字前面補零

 a = 1.25

print('%.6f'%a)

print(str(a).zfill(8))

沒有留言: