【发布时间】:2013-04-29 01:20:04
【问题描述】:
我在 Mountain Lion 上将 Chrome 配置为我的默认浏览器。
在我的 Python 2.7.4 程序结束时,我有以下内容:
import webbrowser
webbrowser.open('http://example.com')
有时,此命令不会打开标签 as the documentation suggests will happen,而是聚焦 Google Chrome,而不是在新标签中打开 URL。
我什至不确定从哪里开始调试它(至少 Python 端没有错误)。我会很感激一些关于从哪里开始寻找的想法。
【问题讨论】:
标签: python google-chrome python-webbrowser