类型错误:worker() 采用 0 个位置参数,但给出了 1 个 - TypeError: worker() takes 0 positional arguments but 1 was given

问题:

I'm trying to implement a subclass and it throws the error:我正在尝试实现一个子类并抛出错误:

TypeError: worker() takes 0 positional arguments but 1 was given

class KeyStatisticCollection(DataDownloadUtilities.DataDownloadCollection):
    def GenerateAddressStrings(self):
        pass    
    def worker():
        pass
    def DownloadProc(self):
        pass

解决方案:

参考: https://stackoom.com/en/question/1HEnG
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章