Define a simple Python function. 定義一個回傳字串結果的函式 add(x, y) 如下。 def add(x, y): return 'x + y = ' + str(x + y) print(add(1, 2)).
確定! 回上一頁