本文共 234 字,大约阅读时间需要 1 分钟。
在Python中调用默认浏览器
Posted on 15:38:00 by 晓月 and filed under Python前面讲了用 Python 模拟浏览器进行登陆、抓取页面然后分析等操作。有的时候,我们还需要把筛选出的页面显示出来,最简单的方法自然是调用系统默认的浏览器。
直接使用标准库中的 webbrowser 模块,看下面的例子:
import webbrowser
webbrowser.open_new_tab('www.163.com')转载地址:http://eesti.baihongyu.com/