1. requests.get
>>> import requests
>>> url = 'http://localhost:5000/register'
>>> payload = {'key1': 'value1', 'key2': 'value2'}
>>> r = requests.post(url,data=payload)
>>> import requests
>>> url = 'http://localhost:5000/register'
>>> payload = {'key1': 'value1', 'key2': 'value2'}
>>> r = requests.post(url,data=payload)
本文标题:python3 requests库
本文链接:https://www.haomeiwen.com/subject/grysqftx.html
网友评论