Commit 2f577e9a by BellCodeEditor

auto save

parent 0ea626c3
Showing with 4 additions and 1 deletions
......@@ -2,5 +2,8 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
goods.pop("农夫山泉")
print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息
for i in goods: #遍历字典的键
for i in goods.keys(): #遍历字典的键
for i in goods.values(): #遍历字典的值
for k,v in goods.items(): #遍历字典的键值对
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