40423228 張育誠
print("i have {0:d}cats".format(6))輸出i have 6 cats
print("i have {0:3d}cats".format(6))輸出 i have 6 cats
print("i have {0:03d }cats".format(6))輸出i have 006 cats
print("i have {0:f}cats".format(6))輸出i have 6.000000 cats
print("i have {0:.2f}cats".format(6))輸出i have 6.00 cats
這周老師開了一個班級群組,每個人都能把自己的作業推上去,途中也有出了一些差錯,不過老師教了用Scrite打開leo來除錯的方法.
六十一分