filein=open("data.dat","r")
filein.read()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OverflowError: requested number of bytes is more than a Python string can hold
с чем может быть связана ошибка?
filein=open("data.dat","r")
filein.read()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OverflowError: requested number of bytes is more than a Python string can hold
Eliontсписок или итератор?
Используй вместо read метод readlines.
Тогда в переменной будет список строк.