Commit 16430b12 by BellCodeEditor

save project

parent 9ed85b40
Showing with 31 additions and 9 deletions
student1={'语文':100,'数学':100,'英语':100}
student2={'语文':16,'数学':19,'英语':11}
student3={'语文':33,'数学':0,'英语':36}
student4={'语文':38,'数学':71,'英语':100}
student5={'语文':100,'数学':85,'英语':92}
while True:
score={'Luis':student1,'大学生':student2,'同桌':student3,'加工费':student4,'傻逼':student5}
name=input("请输入你的名字:")
print("*" * 30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*" * 30)
elif name=="q":
break
else:
print("查询错误。")
This source diff could not be displayed because it is too large. You can view the blob instead.
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
j=input("你要买什么?")
if j in dict:
prink('巧克力'(dict[j]))
else:
prink()
\ 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