Advertisement
Fhernd

argumentos-nombrados.py

Aug 10th, 2018
10,957
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def metodo_prueba(mensaje, *, tamahnio):
  2.     print(mensaje)
  3.     print(tamahnio)
  4.  
  5.  
  6. metodo_prueba('Python', 1024)
  7. metodo_prueba('Python', tamahnio=1024)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement