Commit b338757a by BellCodeEditor

save project

parent 5f0e0ed4
Showing with 19 additions and 6 deletions
weather={'北京':8,'上海':15,'广州':20,'深圳':21}
score1={'语文':91,'数学':88,'英语':85}
weather={'北京':8,'上海':15,'广州':20,'深圳':21}
data=weather.pop("北京")
print(data)
print(weather)
\ No newline at end of file
score1={'语文':91,'数学':88,'英语':85}
score2={'语文':97,'数学':98,'英语':90}
score3={'语文':95,'数学':100,'英语':93}
score4={'语文':100,'数学':100,'英语':100}
goots={'诺伊':score2,'小贝':score3,'悟空':score1,'哈利波特':score4}
while True:
name=input('请输入你的名字,退出请按q:')
print('*'*30)
if name in goots:
info=goots[name]
print(info)
print('*'*30)
elif name=='q':
print('退出程序')
break
else:
print("查询错误,请重新输入")
\ 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