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 holdEliontсписок или итератор?
Используй вместо read метод readlines.
Тогда в переменной будет список строк.