Commit 903d1ca0 by BellCodeEditor

save project

parent 21722b6d
Showing with 26 additions and 0 deletions
student1 = {'语文':91,'数学':88,'英语':85}
student2 = {'语文':97,'数学':98,'英语':90}
student3 = {'语文':95,'数学':100,'英语':93}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
name = input("名字:")
print("*" * 30)
if name in score:
score = score(name)
for k,v in score.items():
print(k,v)
print("*" * 30)
else:
print("查询错误,请输入正取得名字")
'''dict={'F':70,'c':67,'h':104,'i':105,'s':115}
print(dict['c'])'''
'''student={'Jonh':10,'Sam':11,'Anna':10,'Daming':10,'Helen':12}
student['Lily']=10
student['小红']=11
print(student)'''
student=['第一格']='唐三藏'
steamer=['第二格']='假行者'
steamer=['第三格']='沙和尚'
steamer=['第四格']='猪八戒'
print(student)
print(student['第四格'])
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment