发布网友 发布时间:2022-04-23 09:14
共1个回答
热心网友 时间:2022-04-18 15:17
import requests
with open('a.txt') as f:
s = f.read().strip()
data = dict([i.split(':', 1) for i in s.split(',')])
r = requests.get(data.pop('url'), data)
r.raise_for_status()
print(r.text)