StackOverflow 文档 python-requests 教程 档 简单文件上传 简单文件上传 Created: November-22, 2018 url = 'http://your_url' files = {'file': open('myfile.test', 'rb')} r = requests.post(url, files=files) 文件上传 w 手动参数档