Commit 5c7fd6db by BellCodeEditor

save project

parent e1720925
Showing with 15 additions and 0 deletions
p={"张三":71,"李四":65,"王二":89}
q=input("请输入你的名字:")
o=input("你的分数:")
if q in p:
if int(o)>p[q]:
p[q]=int(o)
print(p)
else:
print("你的成绩未达标!")
else:
print("没有这个人")
p[q]=int(o)
print(p)
\ 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