【发布时间】:2012-04-27 10:20:14
【问题描述】:
可能重复:
Is it possible to open up certain web addresses using the default internet browser with python?
我知道 OS X 有一个 open 命令,您可以在其中传入一个 URL,它会打开默认浏览器并将其指向给定的域。
但是对于其他基于 unix 和基于 windows 的机器,我该如何做呢?基本上,我想做一个 CLI(用 python 编写),并有一种从终端打开浏览器的跨操作系统方式。
【问题讨论】:
标签: python windows linux macos terminal