Python 2.7 TypeError:\uuuu init\uuuuuu()最多接受6个参数(给定7个)python 2.7
如果返回测试:Python 2.7 TypeError:\uuuu init\uuuuuu()最多接受6个参数(给定7个)python 2.7,python-2.7,Python 2.7,如果返回测试: poloData = self.conn.api_query("returnChartData",{"currencyPair":self.pair,"start":self.startTime,"end":self.endTime,"period":self.period}) for datum in poloData: if (datum['open'] and datum['close']
poloData = self.conn.api_query("returnChartData",{"currencyPair":self.pair,"start":self.startTime,"end":self.endTime,"period":self.period})
for datum in poloData:
if (datum['open'] and datum['close'] and datum['high'] and datum['low']):
self.data.append(BotCandlestick(self.period,datum['open'],datum['close'],datum['high'],datum['low'],datum['weightedAverage']))
我该怎么补救呢?我是新来的我想我回答了我自己的问题,self是一个论点,所以问题在于bot candlestick父类。我一把它拿出来就行了