Commit 88e60d5d by BellCodeEditor

save project

parent 8ccbfc79
Showing with 7 additions and 1 deletions
...@@ -14,5 +14,11 @@ dict_hero['猴十']=25 ...@@ -14,5 +14,11 @@ dict_hero['猴十']=25
print(dict_hero['猴队长']) print(dict_hero['猴队长'])
dict_hero['猴七']=32 dict_hero['猴七']=32
j=input("名字:") j=input("名字:")
v=input("臂力值:")
if j in dict_hero: if j in dict_hero:
print("臂力值"+str(dict_hreo[j])) if int(v)>dict_hero[j]:
dict_hero[j]=int(v)
print(dict_hreo)
else:
dict_hero[j]=int(v)
print(dict_hero)
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