Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 TypeError:\uuuu init\uuuuuu()最多接受6个参数(给定7个)python 2.7_Python 2.7 - Fatal编程技术网

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父类。我一把它拿出来就行了