0
关注
0
关注者

请大神们指教一下,代码运行出现如下错误 in main AttributeError: ooOooo000oOO instance has no attribute '__getitem__'

创建于: 2018-06-17 14:51:59, 更新于:
comments   1
hits   1358

def main(): action = “Buy” _C(exchange[action],-1,0.01)

请问买单不能这么写么?

请大神们指教一下,代码运行出现如下错误 in main AttributeError: ooOooo000oOO instance has no attribute ‘__getitem__’

这怎么就能运行成功呢?

更多内容
全部留言
avatar of 发明者量化-小小梦
发明者量化-小小梦
JS 可以这样调用 , python 不行, python 的 exchange["Buy"] 是 未定义的。
2018-06-19 18:08:22