Commit e8224d2c by BellCodeEditor

save project

parent 9ca901cd
Showing with 7 additions and 54 deletions
student1 = {'语文':91,'数学':21,'英语':19}
student2 = {'语文':99,'数学':81,'英语':79}
student3 = {'语文':96,'数学':11,'英语':19}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
name = {''}
\ No newline at end of file
dict_hero={'请问':10,'阿萨德':21,'自行车':22,'发过火':29,'金坷垃':30}
print(dict_hero)
print(dict_hero['发过火'])
dict_hero['金坷垃']=32
print(dict_hero)
dict_hero['把你们']=25
print(dict_hero)
if '把你们' in dict_hero:
print(dict_hero['把你们'])
else:
print("错误")
print(dict_hero)
score={'可乐':63,'牛奶'94,'大肠':92,'日你妈'81}
k=input('请输入您的姓名:')
v=input('请输入你的最新成绩:')
if k in score
if int(v)>score[k]:
score[k]=int(v)
print(k+'同学,恭喜你成功更新为'+v+'分')
else:
print(k+'同学,遗憾的通知你,成绩未被刷新')
else
score[k]=int(v)
print('亲爱的'+k+'同学,您的前第一次'+v+'分')
\ 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