mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
fix typo
This commit is contained in:
parent
2ecf370ce4
commit
a25d4db0bc
@ -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
|
||||
|
||||
# 你也可以寫上參數名稱來呼叫函式
|
||||
|
Loading…
Reference in New Issue
Block a user