Files
python----/智慧校园/百仁/demo.ipynb
T
2025-10-20 12:32:18 +08:00

3.9 KiB

In [1]:
from requests import get,post
import time
ip = "http://band.hxzhxy.cn"
param = {
    "username": "tangchao",
    "password": "123456a",
    "client_id": "client",
    "grant_type": "password",
    "client_secret": "123456",
}
data = get(url=f"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456").json()
token = data["access_token"]
header = {
    "content-type": "application/json",
    "authorization": f"Bearer {token}",
}
teamId=110
In [ ]:
get(f"{ip}/uc/student/findBySerialNo",params={
    "teamId":teamId,
    "param":"3108683745"
},headers=header).json()
{'success': True,
 'msg': '操作成功',
 'code': 0,
 'data': {'id': 10914,
  'stuNo': '25040057',
  'stuName': '冯梓骏',
  'sex': 1,
  'classId': 499,
  'gradeId': 129,
  'seralNo': '3108683745',
  'score': 'A',
  'moralEducation': 'A',
  'userName': '25040057CDSPTSZXBRFX',
  'teamId': 110,
  'pid': None,
  'phone': None,
  'imgUrl': None,
  'openid': None,
  'boarder': 2,
  'wxPhone': '13540808459',
  'trust': 0,
  'userId': None,
  'stature': None,
  'weight': None,
  'wxPhones': None,
  'userIdse': None,
  'payUserId': '25082816140601002478',
  'payState': 3,
  'teaChild': 0,
  'openids': None,
  'casId': None,
  'board': 1,
  'chatOpenId': None,
  'chatOpenIds': None,
  'teamName': None,
  'gradeName': '2025级',
  'className': '导师11班',
  'sexName': None,
  'battery': None,
  'steps': None,
  'rank': None,
  'roleName': None,
  'sleepStart': None,
  'sleepEnd': None,
  'type': None,
  'setTime': None,
  'status': None,
  'userType': None,
  'sumLocation': None,
  'arkName': None}}
在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。

请查看单元格中的代码,以确定故障的可能原因。

单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。

有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。
In [ ]: