-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
我已經找遍了。如果您知道解決方案,請發佈。我無法弄清楚什麼是錯的 –