Advertisement
Fhernd

serializar-objetos.py

Jul 22nd, 2018
1,602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import pickle
  2.  
  3. datos = ['Python 2', 'Python 3', '...', 'Python 5']
  4.  
  5. with open('datos.ser', 'wb') as f:
  6.     pickle.dump(datos, f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement