Commit 11185d7a by BellCodeEditor

save project

parent fac0a126
Showing with 8 additions and 4 deletions
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':38}
print(dict_hero)
dict_hero['sih']=101
print(dict_hero)
dict={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':38}
k=input("你要什么?")
if k in dict:
print("你要的东西",k,"是",(dict[k]),"元")
else:
print("没有你要的东西")
\ 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