iquery
iquery copied to clipboard
cann't run in windows 7 by UnicodeDecodeError
Traceback (most recent call last):
File "C:\Python34\lib\runpy.py", line 170, in run_module_as_main
"main", mod_spec)
File "C:\Python34\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Python34\Scripts\tickets.exe__main.py", line 9, in
at last i make it run https://segmentfault.com/q/1010000002515129/a-1020000002515648
File "C:\Python34\lib\site-packages\tickets\trains.py", line 151, in stations with open(filepath, 'rb') as f:
#8 [fix] gbk encode error on windows
@magic5650 把你的查询参数贴下看看, stations.dat文件本身是utf-8编码的,报错有点奇怪