标签:container *** ase request data pytho origin images pycha
①安装requests
在cmd中,pip install requests
②pycharm中导入
file-->setting-->添加
③
④编码如下:
#coding=utf-8
import requests
import json
base_url=‘*******‘
url=base_url+‘/pp/v1/Client/LoginReg/sendSms‘
print url
bodyData= {"phone": 13250772191
}
date_json = json.dumps(bodyData)
r = requests.post(url, data=date_json)
print r.json()
标签:container *** ase request data pytho origin images pycha
原文地址:https://www.cnblogs.com/wx921308494/p/11963781.html