isdkz 发表于 2023-4-23 23:24 图没有,代码也没有 from playwright.sync_api import sync_playwright with sync_playwright() as p: chromium = p.chromium browser = chromium.launch() context = browser.new_context() page = context.new_page() page.goto("xxx") page.screenshot(path="screenshot.png") browser.close()
hcll706 发表于 2023-4-24 07:31 from playwright.sync_api import sync_playwright with sync_playwright() as p: 代码 没有问题 就是 出来 CMD命令窗口 一闪即过 类似 打包py为 exe文件 运行时的那种