1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-20 05:21:26 +02:00

Merge pull request #1 from RainJayTsai/zh-tw

Merge commit "fix typo"
This commit is contained in:
Michael Yeh
2015-11-03 11:13:54 +08:00

View File

@@ -450,7 +450,7 @@ def add(x, y):
print "x is {0} and y is {1}".format(x, y)
return x + y # 用 "return" 來回傳值
# 用參數來呼叫
# 用參數來呼叫
add(5, 6) # => 輸出 "x is 5 and y is 6" 並回傳 11
# 你也可以寫上參數名稱來呼叫函式