Python继承:TypeError:object.__init__()不接受参数

9 浏览
0 Comments

Python继承:TypeError:object.__init__()不接受参数

当运行我的代码时,我遇到了以下错误:

TypeError: object.__init__()不接受参数

虽然我不太清楚我在这里做错了什么:

class IRCReplyModule(object):
    activated = True
    moduleHandlerResultList = None
    moduleHandlerCommandlist = None
    modulename = ""
    def __init__(self, modulename):
        self.modulename = modulename
class SimpleHelloWorld(IRCReplyModule):
     def __init__(self):
            super(IRCReplyModule,self).__init__('hello world')

0