python爬虫之requests的高级使用

1、requests能上传文件 # 导入requests模块 import requests # 定义一个dict files = {'file': open('D:/360Downloads/1.txt', 'rb')} # post请求 response = requests.post("htt
posted @ 2020-03-18 17:10  Mr_choa  阅读(406)  评论(0编辑  收藏  举报