Commit c2128765 by BellCodeEditor

save project

parent d89810cd
Showing with 6 additions and 4 deletions
dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
dict_hero["丁一"]=100
dict_hero["猴十"]=32
print(dict_hero["猴十"])
\ No newline at end of file
k=input("你想买神马")
if k in dict_hero:
print(str(dict_hero[k])+"yuan")
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