Parse bug text file
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Tue Jul 29 03:48:50 EDT 2014
Le lundi 28 juillet 2014 20:37:50 UTC+2, CM a écrit :
> Thank you, Chris, Terry, and jmf, for these pointers. Very helpful.
>
>
>
> -CM
I'm wondering what "big text file" means.
>>> with open('UnicodeData.txt', 'r', encoding='ascii') as f:
... r = f.read()
...
>>> len(r)
1366791
>>> a = r.split('\n') # mimicking a '-'
>>> len(a)
24430
>>> na = [e for e in a]
>>>
jmf
More information about the Python-list
mailing list