资源加载中... loading...

模拟回测 python 报 “global name 'log' is not defined”

Author: kkms, Created: 2018-04-23 01:15:04, Updated: 2018-04-23 10:17:55

已经找到原因,Log的L应该为大写 ————————————————

代码很简单:

def main(): log(exchange.GetRecords())

这样会报:Traceback (most recent call last): File “<string>”, line 1285, in Run File “<string>”, line 7, in <module> File “<string>”, line 2, in main NameError: global name ‘log’ is not defined


More

发明者量化-小小梦 ^^ , 注意大小写。