【Python】urllib模块的使用

来源:互联网 发布:怎么告别人网络诽谤 编辑:程序博客网 时间:2024/04/28 21:51

Python版本:3.6

IDE:PyCharm


1、获取http://blog.csdn.net/lolitaq页面

import urllib.requestresponse = urllib.request.urlopen("http://blog.csdn.net/lolitaq")print (response.read())