Commit 3df83354 by BellCodeEditor

save project

parent b02614e8
Showing with 16 additions and 4 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} fgh1 = {'语文':86,'数学':65,'英语':48}
goods.pop("农夫山泉") fgh2 = {'语文':85,'数学':85,'英语':78}
print(goods) fgh3 = {'语文':26,'数学':45,'英语':68}
# 请将"农夫山泉"删掉,并打印出新的商品信息 ddsf = {'荔枝':fgh1,'树枝':fgh2,'噶':fgh3}
while True:
ppp=input("uhhuu:")
if ppp=="q":
break
if ppp in ddsf:
print("*"*30)
print("姓名",ppp)
for n,m in ddsf[ppp].items():
print(n,m)
print("*"*30)
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