08-urllib

'''
安装后在命令行直接输入jupyter notebook

按B键可以增加一个命令行

ctrl+enter 运行

标题模式 markdowm
'''

#jupyter notebook
import urllib.request
response = urllib.request.urlopen('http://www.baidu.com')
print(response.read().decode('utf-8')) #百度首页源代码 get 请求

  

posted @ 2018-11-07 16:24  犀利的攻城狮  阅读(81)  评论(0编辑  收藏  举报