Created
September 18, 2011 16:34
-
-
Save yingtai/1225244 to your computer and use it in GitHub Desktop.
memo
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 foo(a,b): | |
return a+b, a*b | |
def bar(c,d): | |
return c-d, c/d | |
foo(*bar(1,2)) #barの返り値が展開される |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment