第三方库的安装
1>File|Settings... (Ctrl+Alt+S)
- 单击Project Interpreter
- 选择Python环境
- 单击加号添加库
4.搜索&安装
第三方库的使用
import requests
res=requests.get('http://www.cnblogs.com/feiyucha')
print(res) #返回<Response [200]>表示成功 若400 404则失败
print(res.text)
第三方库的安装
1>File|Settings... (Ctrl+Alt+S)
4.搜索&安装
第三方库的使用
import requests
res=requests.get('http://www.cnblogs.com/feiyucha')
print(res) #返回<Response [200]>表示成功 若400 404则失败
print(res.text)