Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from functools import partial
- REGISTROS_A_LEER = 5
- with open('fibonaccis.txt', 'rb') as f:
- registros = iter(partial(f.read, REGISTROS_A_LEER), b'')
- for registro in registros:
- print(registro)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement