码迷,mamicode.com
首页 > 其他好文 > 详细

note

时间:2015-04-23 23:15:53      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

刚学python,今天接触两个模块:

1.webbrowser

2.urrlib

webbrowser用来打开新网页,用法是webbrowser.open_new_tab(url),若是需要关闭浏览器,则需要os.system(‘taskkill /F /IM ***.exe‘),这是在windows

urllib主要用来做网络爬虫,可以用urllib.openurl(url).read(),读取网页html代码

note

标签:

原文地址:http://www.cnblogs.com/shiniantianlang/p/4451942.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!