Commit f93ff623 by BellCodeEditor

save project

parent dd8cdd2a
Showing with 8 additions and 0 deletions
...@@ -2,4 +2,6 @@ dict_hero={'猴三':10,'猴一':21,'猴队长':39} ...@@ -2,4 +2,6 @@ dict_hero={'猴三':10,'猴一':21,'猴队长':39}
print(dict_hero) print(dict_hero)
print(dict_hero['猴队长']) print(dict_hero['猴队长'])
dict_hero['猴队长']=40 dict_hero['猴队长']=40
print(dict_hero)
dict_hero['猴十']=25
print(dict_hero) print(dict_hero)
\ No newline at end of file
dict={"北京烤日本":100,"八二年辣鸡":100000000000000000000000000000000}
k=input('你想吃什么')
if k in dict:
print('滴滴~我的'+k+'不用支付'+str(dict[k])+'欧元~')
\ 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