Edit python code with vscode on mac. The pool-related statements in it do not work properly.

problem description

write crawler code with vscode on mac, some of which try to use pool to crawl, but once you add the pool-related code, the program will not work properly, comment out the pool-related code and you can crawl the picture normally.

the environmental background of the problems and what methods you have tried

also wrote the code to test pool separately, as long as the code including pool does not work properly.

related codes

/ / Please paste the code text below (do not replace the code with pictures)
if name ="_ main__":
pool = Pool ()
groups = ([x * 20 for x in range (GROUP_START, GROUP_END + 1)])
pool.map (main, groups)
pool.close ()
pool.join ()
can be seen when the process has been established, but can not continue to execute in the map function.

what result do you expect? What is the error message actually seen?

May.15,2022
Menu