From e611d1a798e8d17ce18a5bb7b1a6f7ff86f8a01a Mon Sep 17 00:00:00 2001 From: msincenselee Date: Tue, 30 Jan 2018 17:25:57 +0800 Subject: [PATCH] =>Py3.5 --- vnpy/trader/app/dataRecorder/utlImportTicks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/dataRecorder/utlImportTicks.py b/vnpy/trader/app/dataRecorder/utlImportTicks.py index a6925b6e..65e2fc09 100644 --- a/vnpy/trader/app/dataRecorder/utlImportTicks.py +++ b/vnpy/trader/app/dataRecorder/utlImportTicks.py @@ -225,7 +225,7 @@ def load_ticks_from_txt_file(file_name, symbol, trading_day): last_tick_datetime = None # 文件句柄 - csv_read_file = open(file_name, 'rb',encoding='utf8') + csv_read_file = open(file_name, 'r',encoding='utf8') # 通过csv模块的DictReader,一次性读取所有数据 reader = csv.DictReader(csv_read_file, delimiter=",")