Commit a83bb738 by BellCodeEditor

auto save

parent ab69861e
Showing with 17 additions and 5 deletions
goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} # goods = {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
goods.pop("农夫山泉") # goods.pop("农夫山泉")
print(goods) # print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息 # 请将"农夫山泉"删掉,并打印出新的商品信息
e={"语文":97,"数学":94,"英语":100}
r={"语文":98,"数学":64,"英语":89}
t={"语文":67,"数学":82,"英语":78}
fs={"中":e,"发":r,"睿":t}
while
u=input("请输入姓名:")
if u in fs:
print("*"*10)
fs=fs[u]
print(fs)
print("*"*10)
else:
print("输入错误,请重新输入")
\ 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