Commit 6bd7128c by BellCodeEditor

auto save

parent a9c38d39
Showing with 6 additions and 0 deletions
......@@ -3,4 +3,9 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
# 请将"农夫山泉"删掉,并打印出新的商品信息
# goods.pop() #删除指定的键值
# goods.clear() #清空字典里所有的键值对,但是还会留下一个空字典
# del(goods) #整个字典都删除,不留下空字典
print(goods.pop('农夫山泉'))
print(goods)
\ 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