用GET方法上传文件 2014/11/09 15215 import requests #需要安装requests with open('test.txt', 'rb') as f: requests.get('http://127.0.0.1:9999', data=f)