zl程序教程

您现在的位置是:首页 >  后端

当前栏目

第一个爬虫

爬虫 第一个
2023-09-14 09:00:20 时间

第三方库的安装

  1>File|Settings...  (Ctrl+Alt+S)

  1.  单击Project Interpreter 
  2. 选择Python环境 
  3. 单击加号添加库

  

  4.搜索&安装

  

第三方库的使用

  

import requests
res=requests.get('http://www.cnblogs.com/feiyucha')
print(res) #返回<Response [200]>表示成功 若400 404则失败
print(res.text)