def f(x,y,z):
return [x,y,z]
调用f的时候,传入的参数如果包含*()表达式的话需要将其后对应的参数名带上
如: f(2, *a, z=3) 使用f(2, *a, 3) 可能会报错
Last active
November 8, 2018 02:57
-
-
Save Roger8/45ecaaabd23b20962097e08ec046a185 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment