Commit ac30a069 by BellCodeEditor

save project

parent e01b6022
Showing with 11 additions and 7 deletions
dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6}
kun = input('有话快说,有屁快放!!!!!!!!!')
if kun in dict:
print("共"+str(dict[kun])+"快点付款,你个吊毛!!!!!!!!!!")
else:
print("没货了滚!!!!!!!!!!")
\ No newline at end of file
student1 = {'语文': 91, '数学': 88, '英语': 85}
student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
name=input("请输入名字")
if name in score:
print(name)
for k,v in score[name].items():
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