Created
October 20, 2012 01:55
-
-
Save tmf16/3921666 to your computer and use it in GitHub Desktop.
可変長引数を次の関数へ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> def test(*argv): | |
... hoge(argv) | |
... fuga(*argv) | |
... | |
>>> def hoge(*argv): | |
... print argv | |
... | |
>>> def fuga(*argv): | |
... print argv | |
... | |
>>> test(1, 2, 3, 5, 7) | |
((1, 2, 3, 5, 7),) | |
(1, 2, 3, 5, 7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment