Merge pull request #1310 from cclauss/patch-1
Use print() function in both Python 2 and Python 3
This commit is contained in:
commit
da902cde95
@ -1,5 +1,7 @@
|
||||
# encoding: UTF-8
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
from csv import DictReader
|
||||
from datetime import datetime
|
||||
from collections import OrderedDict, defaultdict
|
||||
@ -306,7 +308,7 @@ class BacktestingEngine(object):
|
||||
#----------------------------------------------------------------------
|
||||
def output(self, content):
|
||||
"""输出信息"""
|
||||
print content
|
||||
print(content)
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def getTradeData(self, vtSymbol=''):
|
||||
|
Loading…
Reference in New Issue
Block a user