Commit 24778e51 by BellCodeEditor

save project

parent fc5b14d3
Showing with 3 additions and 1 deletions
...@@ -2,7 +2,7 @@ qwe={} ...@@ -2,7 +2,7 @@ qwe={}
k=input("名字:") k=input("名字:")
v=input("本次分数:") v=input("本次分数:")
if k in qwe: if k in qwe:
if int(v)>qwe[k] if int(v)>qwe[k]:
qwe[k]=int(v) qwe[k]=int(v)
print("成绩已更新。") print("成绩已更新。")
else: else:
...@@ -10,3 +10,4 @@ if k in qwe: ...@@ -10,3 +10,4 @@ if k in qwe:
else: else:
qwe[k]=int(v) qwe[k]=int(v)
print("成绩已上传。") print("成绩已上传。")
print(qwe)
\ 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