您的位置:首页 > 编程语言 > Python开发

Python 模拟登陆 华理 评教系统

2016-06-04 22:26 573 查看
要使用

ISO8859-1编码才能正确输出中文

import requests
postUrl = 'http://pjb.ecust.edu.cn/pingce/login.php'
postData = {'action':'login',
'sno':'你的用户名',
'password':'你的密码'}
r = requests.Session()
r.post(postUrl, postData)
getUrl = 'http://pjb.ecust.edu.cn/pingce/list.php'
html = r.get(getUrl)
s = html.text.encode('ISO8859-1')
print s
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: