Created
December 17, 2017 16:59
-
-
Save hanjae-jea/6784aac4e99ce0d27c87fe7f452a7bd3 to your computer and use it in GitHub Desktop.
mopa
This file contains hidden or 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 args_func(first, second, *args, **kwargs): | |
print("first: ", first) | |
print("second: ", second) | |
for arg in args: | |
print("*argv 인자 ", arg) | |
for key, value in kwargs.items(): | |
print("*kwargs %s -> %s" % (key, value)) | |
args_func(5, "구구", 12,34,56,ff=99,name="HJ",club="catdog") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
실행결과
first: 5
second: 구구
*argv 인자 12
*argv 인자 34
*argv 인자 56
*kwargs ff -> 99
*kwargs name -> HJ
*kwargs club -> catdog