-1
我在Python中调用了一个像这样的函数。位置参数跟随关键字参数
order_id = kite.order_place(self, exchange, tradingsymbol,
transaction_type, quantity, price, product, order_type, validity,
disclosed_quantity=None, trigger_price=None, squareoff_value,
stoploss_value, trailing_stoploss, variety, tag='')
这里是从功能的文档代码..
def order_place(self, exchange, tradingsymbol, transaction_type,
quantity, price=None, product=None, order_type=None, validity=None,
disclosed_quantity=None, trigger_price=None, squareoff_value=None,
stoploss_value=None, trailing_stoploss=None, variety='regular', tag='')
这是给这样的错误..
如何解决这个问题? 谢谢!
要么添加更多的关键字,要么删除它们。 –
错误消息告诉你*确切*出了什么问题。看一些文档。找出短语“位置参数”和“关键字参数”的含义。它不会杀了你。我承诺。 – 2017-02-10 16:15:58
我已经找遍了。如果您知道解决方案,请发布。我无法弄清楚什么是错的 –