📜  webbrowser python 找不到可运行的浏览器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:59.826000             🧑  作者: Mango

代码示例1
import webbrowser    
urL='https://www.google.com'
chrome_path="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
webbrowser.register('chrome', None,webbrowser.BackgroundBrowser(chrome_path))
webbrowser.get('chrome').open_new_tab(urL)