40423124林濬翔
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
salary = input("please enter your salary") bouns = input("please enter your bouns") paycheckAmount = salary + bouns print(paycheckAmount) 將你的薪水及獎金輸入,之後再將兩個分別加起來,並打印出來.
這禮拜老師在github上創建了一個班上的群組,每個人可以將自己的作業gitpush到上面,不過途中有發現一些錯誤,無法分辨,很快的老師就解決了錯誤,並將錯誤告訴我們,只要將開啟即關閉改成一定數量就可以將錯誤解決,接下來就可以push.
分數:75分