christy99cc

导航

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

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

 

def main(self):

括号里加上self就好了

posted on 2019-08-02 21:23  christy99cc  阅读(4526)  评论(0编辑  收藏  举报