This commit is contained in:
msincenselee 2018-01-30 17:25:57 +08:00
parent 7f1b6fb9ec
commit e611d1a798

View File

@ -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=",")