Commit d1cdf1bc by BellCodeEditor

save project

parent 7928389c
Showing with 25 additions and 2 deletions
score1 = {'语文':91,'数学':88,'英语':85}
score2 = {'语文':97,'数学':98,'英语':90}
score3 = {'语文':95,'数学':100,'英语':93}
score = {'11':score1,'12':score2,'13':score3}
while True:
print("想退出请输入q")
name=input("名字:")
print("*"*100)
if name in score:
info = score[name]
print("*"*100)
for k,v in info.items():
print(k,v)
print("*"*100)
elif name == "q":
break
else:
print("*"*100)
print("鸡你太美!你似乎没有分数,已经为你自动分配技校.")
print("补救方法:冲值30元即可重新输入")
print("*"*100)
\ No newline at end of file
...@@ -2,5 +2,5 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'å·´è¥¿çƒ ...@@ -2,5 +2,5 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
goods.pop("农夫山泉") goods.pop("农夫山泉")
print(goods) print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息 # 请将"农夫山泉"删掉,并打印出新的商品信息
print(goods["鸡"]=100) goods["鸡"]=100
print(goods)
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