Commit dcc49db4 by BellCodeEditor

save project

parent ec939f12
Showing with 4 additions and 1 deletions
...@@ -12,5 +12,8 @@ power=int(input('你臂力多少啊?')) ...@@ -12,5 +12,8 @@ power=int(input('你臂力多少啊?'))
dict_hero = {'猴三' :10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} dict_hero = {'猴三' :10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
dict_hero['猴七']=100 dict_hero['猴七']=100
dict_hero['zhubajie']=999 if zhubajie in dict_hero:
print(用户名已存在)
else zhubajie in dict_hero
dict_hero['zhubajie']=999
print(dict_hero) 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