Commit 8471e8eb by BellCodeEditor

save project

parent dd021d35
Showing with 6 additions and 4 deletions
......@@ -5,10 +5,12 @@ dict_hero={"猴三":10,"猴一":21,'猴五':22,'猴队长':29,'猴七':30}
k=input("输入你的名字")
i=input("输入你的成绩")
if k in dict_hero:
if int(k)>dict_hero[k]
int(i)=dict_hero[i]
else:
print("你的成绩已经更新"+i)
if int(i)>dict_hero[k]:
dict_hero[k]=int[i]
else:
print("你的成绩已经更新"+i)
else:
dict_hero[k]=int[i]
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