返回列表 發帖

自定函式 (一)

  1. def hello():
  2.     print("Hello!")
  3. def getScore(a,b,c):
  4.     return a*0.3+b*0.3+c*0.4
  5.    
  6. hello()
  7. print(getScore(85,97,95))
複製代碼

  1. def hello():
  2.     print("hello!")
  3. def getScore(a,b,c):
  4.     return a*0.3+b*0.3+c*0.4

  5. hello()
  6. print(getScore(85,97,95))
複製代碼

TOP

  1. def hello():
  2.     print("Hello!")
  3. def getScore(a,b,c):
  4.     return a*0.3+b*0.3+c*0.4
  5. hello()
  6. print(getScore(85,97,95))
複製代碼

TOP

返回列表