Commit 01ae84c6 by BellCodeEditor

save project

parent a9c38d39
Showing with 18 additions and 2 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
goods.pop("农夫山泉")
print(pop)
# 请将"农夫山泉"删掉,并打印出新的商品信息
score={"语文","数学","音乐","美术"}
###
studeet1={'yuwen':91,'shuxue':85,'yingyu':75}
studeet2={'yuwen':85,'shuxue':75,'yinyue':65}
studeet3={'yuwen':89,'shuxue:78,yinyue':78}
score={'wukong':studeet1,'xiaobei':studeet2,'nuoyi':studeet3}
name=input("mingzi:")
print("*"*30)
if name in score:
score=score[name]
for k,v in info.items():
print(k,v)
print("*"*30)
else:
print("您输入的名字不正确,请输入正确的名字")
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