Commit 38b3f8aa by BellCodeEditor

save project

parent 7b30b671
Showing with 5 additions and 4 deletions
......@@ -12,6 +12,8 @@
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero{'猴队长'})
dict_hero['猴队长']=100
print(dict_hero)
dict_hero["好他"]=100
print(dict_hero["好他"])
\ No newline at end of file
k=input("你叫什么")
if k in dict_hero:
print("你的臂力值是多少"+str(dict_hero[k])+'元')
else:
print("没有!")
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