Commit 8df8aa04 by BellCodeEditor

save project

parent 765a17f2
Showing with 13 additions and 0 deletions
dict={"小明":77,"小王":150,"小张":58,"小美":100,"丁一":42}
k = input("姓名?")
v = input("成绩?")
if k in dict:
if dict[k] < int(v):
print("进步了!")
dict[k]=int(v)
else:
print("加油!")
else:
dict[k] = v
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