问题描述
我的默认网络浏览器是Firefox。当我运行此代码时:
import webbrowser
webbrowser.open("https://google.com")
Firefox出现并打开指定的URL页面。
但是我想用Chrome打开页面。所以我尝试了:
chrome_path = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
webbrowser.get(chrome_path).open("https://google.com")
然后我收到Error: could not locate runnable browser
消息。
我在做什么错了?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)