hony@hony-virtual-machine:~$ sudo pip install requests
In [1]: import requests;
In [2]: r = requests.get('http://www.baidu.com')
In [3]: print r.content
百度
Python 安装requests模块
点赞
收藏
Python 安装requests模块
hony@hony-virtual-machine:~$ sudo pip install requests
In [1]: import requests;
In [2]: r = requests.get('http://www.baidu.com')
In [3]: print r.content
百度