Commit 945842c4 by BellCodeEditor

auto save

parent 5ab73846
Showing with 7 additions and 0 deletions
...@@ -19,3 +19,9 @@ print(dict_hero) ...@@ -19,3 +19,9 @@ print(dict_hero)
if '猴十'in dict_hero: if '猴十'in dict_hero:
print(dict_hero['猴十']) print(dict_hero['猴十'])
dict={'Sausage':3,'japan beer':4,'Orange juice':5,'fagun':6,'AK47':7,'CPU':8}
K=input("你要啥")
if K in dict:
print("你要的"+K+"是"+str(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