summaryrefslogtreecommitdiffhomepage
path: root/zh-cn/python-cn.html.markdown
diff options
context:
space:
mode:
authordengzhenpeng <ben_29@live.com>2020-05-25 15:46:03 +0800
committerAndrew Ryan Davis <AndrewDavis1191@gmail.com>2020-07-19 23:17:56 -0700
commitc3b9c3c31d83615be5a6d21db3c61235a8e1071f (patch)
tree350b263c5a8ca87c2ffd9cc2c399e08c8fcfe479 /zh-cn/python-cn.html.markdown
parent6a5b626f788d4aaaa2f3c6e7e749bf3b77410245 (diff)
Fix wrong method name in comment
Diffstat (limited to 'zh-cn/python-cn.html.markdown')
-rw-r--r--zh-cn/python-cn.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown
index da13275b..6c5556fc 100644
--- a/zh-cn/python-cn.html.markdown
+++ b/zh-cn/python-cn.html.markdown
@@ -436,9 +436,9 @@ all_the_args(1, 2, a=3, b=4) prints:
# 调用可变参数函数时可以做跟上面相反的,用*展开序列,用**展开字典。
args = (1, 2, 3, 4)
kwargs = {"a": 3, "b": 4}
-all_the_args(*args) # 相当于 foo(1, 2, 3, 4)
-all_the_args(**kwargs) # 相当于 foo(a=3, b=4)
-all_the_args(*args, **kwargs) # 相当于 foo(1, 2, 3, 4, a=3, b=4)
+all_the_args(*args) # 相当于 all_the_args(1, 2, 3, 4)
+all_the_args(**kwargs) # 相当于 all_the_args(a=3, b=4)
+all_the_args(*args, **kwargs) # 相当于 all_the_args(1, 2, 3, 4, a=3, b=4)
# 函数作用域