def shout(word="yes"): return word.capitalize()+"!" print(shout()) # 輸出: 'Yes!' # 作為一個物件,您可以像其他物件一樣將函式賦給變數 scream ...
確定! 回上一頁