Commit 945842c4 by BellCodeEditor

auto save

parent 5ab73846
Showing with 8 additions and 2 deletions
...@@ -18,4 +18,10 @@ dict_hero['猴十']=25 ...@@ -18,4 +18,10 @@ dict_hero['猴十']=25
print(dict_hero) print(dict_hero)
if '猴十'in dict_hero: if '猴十'in dict_hero:
print(dict_hero['猴十']) print(dict_hero['猴十'])
\ No newline at end of file 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