【完美解决】使用flask的run启动debug来运行puppeteer,报错【signal only works in main thread 】的解决方案
解决方案:puppeteer在初始化launch时,必须增加以下的参数【handleSIGINT=False, handleSIGTERM=False, handleSIGHUP=False】才能使得flask的run-debug模式启动也能正常运行!_browser = await launch( { "headless": _headless, "defaultViewport&q