Type/to search
0
Follow
0
Followers
请大神们指教一下,代码运行出现如下错误 in main AttributeError: ooOooo000oOO instance has no attribute '__getitem__'
FAQ
Created 2018-06-17 14:51:59  
 1
 1701

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

请问买单不能这么写么?

img

这怎么就能运行成功呢?

Related Recommendations
Comment
All comments (1)

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

    8 years ago
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)