最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

python3使用chrome浏览器打开指定网页

业界 admin 6浏览 0评论
import webbrowser  chromePath = r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chromePath)) webbrowser.get('chrome').open('https://www.baidu',new=1,autoraise=True) import webbrowser  chromePath = r'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chromePath)) webbrowser.get('chrome').open('https://www.baidu',new=1,autoraise=True)
发布评论

评论列表 (0)

  1. 暂无评论