python HTTP 请求和 base64 编码 json
python 发送 HTTP 请求
import requests
url='http://url/api'
s=({"hello":"world","name":"zhenng"})
r=requests.post(url,data=s)
jf= json.dumps(r.json(), sort_keys=True, indent=4, separators=(',', ':'))
print(jf)
print(r.status_code)
requests.post 发送 HTTP ...
zhengsongling.com1 min read