(简易版)学生管理系统–python
data = [] # 新建一个列表存储学生信息
# 添加学生信息
def appendchild(name, age, height, address):
data.extend([{name: [{"name": name}, {"age": age}, {"height": height}, {"address": address}]}])
return data
# 删除学生信息
def deletechild(name):
for i in data:
if i.get(name) != None:
data.remove(i)
return data
# 修改学生信息
def checkchild(name):
for i in data:
if i.get(name) != None:
共有 0 条评论