简单的高考查询,不完善,技术菜鸟

简单的高考查询,不完善,技术菜鸟

data ={
"魏X":{"语文":["150"],
"数学":["150"],
"英语":["150"],
"综合":{
"化学":["90"],
"物理":["90"],
},
},
"黄XX":{"语文":["150"],
"数学":["150"],
"英语":["150"],
"综合":{
"化学":["90"],
"物理":["90"],
}
},
"陈璐阳":{"语文":["50"],
"数学":["20"],
"英语":["10"],
"综合":{
"化学":["19"],
"物理":["29"],
},
},
}
fenshu_list = []
#exit_flag = False
while True:

for i in data:
print(i)
shuru = input("请输入姓名:")
if shuru in data:
while True:

for i2 in data[shuru]:
print(i2)
shuru2 = input("请输入科目名称:")
if shuru2 in data[shuru]:
while True:
for i3 in data[shuru][shuru2]:
print(" ",i3)

p_item = data[shuru][shuru2]
fenshu_list.append(p_item)
print("----",shuru2,p_item)
shuru3 = input("返回上一层请按b :》》")
if shuru3 == "b":
break


else:shuru3 == "q"
print("%s----- 成绩单----- %s" ," ",shuru,shuru2,p_item)
for j in fenshu_list:
print(j)
exit()
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » 简单的高考查询,不完善,技术菜鸟