Advertisement
Fhernd

recorrer-archivo.py

Jan 22nd, 2018
1,026
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. libros = open('libros.csv')
  2.  
  3. for libro in libros:
  4.     print(libro)
  5.  
  6. print()
  7. # Recorrido con función next():
  8. libros = open('libros.csv')
  9.  
  10. print(next(libros))
  11. print(next(libros))
  12. print(next(libros))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement