Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function #Compatibilidade func print python 2/3
- #Passagem de parametros em python (completo)
- def MyFunc(l, i, s):
- """ teste de passagem de parametros """
- l.sort()
- i += 1
- s = 'INI-%s-FIM' %(s)
- l = [2,5,3,2,0,1]; i = 10; s = 'mcpy';
- print('\n l: ', l, '\n i: ', i, '\n s: ', s);
- MyFunc(l, i, s)
- print('\n l: ', l, '\n i: ', i, '\n s: ', s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement