python使用多进程multiprocessing执行报错

发布时间 2023-07-27 15:01:50作者: 虫王戮蛊

        in the main module:

            if __name__ == '__main__':

                freeze_support()

                ...

        The "freeze_support()" line can be omitted if the program

        is not going to be frozen to produce an executable.

报着个错的时候,只需要在成勋开始运行的地方加上如下

 if __name__=="__main__":