Commit 211270bb by BellCodeEditor

save project

parent 325be139
Showing with 11 additions and 3 deletions
...@@ -6,5 +6,5 @@ print(dict_hero) ...@@ -6,5 +6,5 @@ print(dict_hero)
print(dict_hero['猴队长']) print(dict_hero['猴队长'])
dict_hero['猴七']=32 dict_hero['猴七']=32
print(dict_hero) print(dict_hero)
dict_hero['猴十']=25 print(dict_hero)
print(dict_hero) dict_hero['猴十']=25
\ No newline at end of file \ No newline at end of file
dict={'可口可乐':3,'奶':4,'水':1}
dict={'可口可乐':3,'奶':4,'水':1}
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