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

Author: yummyhu, Created: 2018-06-17 14:51:59, Updated:

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

请问买单不能这么写么?

img

这怎么就能运行成功呢?


More

小小梦 JS 可以这样调用 , python 不行, python 的 exchange["Buy"] 是 未定义的。