Commit 65094279 by BellCodeEditor

save project

parent 059ec067
Showing with 5 additions and 3 deletions
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
# dict_shop={"马":30,"牛":20,"鸡":5,"鱼":10} # dict_shop={"马":30,"牛":20,"鸡":5,"鱼":10}
# print(dict_shop) # print(dict_shop)
dict_monkeys={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} dict_monkeys={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_monkeys['猴队长']) print(monkeys['猴队长'])
dict_monkeys['猴七']=32 dict_monkeys['猴七']=32
print(dict_monkeys) print(dict_monkeys)
\ No newline at end of file if '猴十' not in dict_monkeys:
dict_monkeys['猴十']=25
print(dict_monkeys)
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