40423110余浩鋼
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到上面
分數:60分