Created
December 11, 2016 02:09
-
-
Save yunho0130/28cf0196ed93ed8d4639376be1e7de07 to your computer and use it in GitHub Desktop.
test
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 ppap(item1='pen',item2='apple',item3='pineapple'): | |
| def song(item1): | |
| print 'I hava a {}'.format(item1) | |
| def ah(item1, item2): | |
| print 'Ah~ {0} {1}'.format(item2,item1) | |
| def combine(item1, item2, item3): | |
| print '{0}~ {1}~ {2}~'.format(item2+' '+item1, item3+' '+item1, item1+' '+item3+' '+item2+' '+item1) | |
| song(item1) # I have a pen | |
| song(item2) # I hava an apple | |
| ah(item1,item2) # Ah~ apple pen | |
| song(item1) # I have a pen | |
| song(item3) # I hava a pineapple | |
| ah(item1,item3) # Ah~ pineapple pen | |
| combine(item1, item2, item3) # apple pen~ pineapple pen~ pen pineapple apple pen | |
| ppap() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment