代码
import requests
import json
if __name__ == '__main__':
user = input('请输入你要查询的手机号:')
data={
'username': user,
't':''
}
url = 'http://2099wk.cn/api.php?act=chadan'
r = requests.post(url,data=data).text
page_data = json.loads(r)
for i in page_data['data']:
id = i['id']
sj = i['addtime']
mc = i['kcname']
jd = i['process']
ptmc = i['ptname']
zt = i['status']
print("平台ID:"+ id +'\n'+"当前状态:"+zt+'\n'+"下单时间:"+ sj +'\n'+ "课程名字:"+ mc +'\n'+ "当前进度:"+ jd +'\n'+"项目名称:"+ ptmc +'\n'+"--------------------"+'\n')
© 版权声明
THE END
暂无评论内容