TypeError: 'module' object is not callable

前端 未结 11 1833
耶瑟儿~
耶瑟儿~ 2020-11-22 12:06
File \"C:\\Users\\Administrator\\Documents\\Mibot\\oops\\blinkserv.py\", line 82, in __init__
    self.serv = socket(AF_INET,SOCK_STREAM)
TypeError: \'module\' objec         


        
11条回答
  •  故里飘歌
    2020-11-22 12:32

    check the import statements since a module is not callable. In Python, everything (including functions, methods, modules, classes etc.) is an object.

提交回复
热议问题