Commit aba03c8b by BellCodeEditor

save project

parent 16ac0761
Showing with 7 additions and 15 deletions
student1 = {'语文':91,'数学':88,'英语':85}
student2= {'语文':1,'数学':8,'英语':5}
student3= {'语文':9,'数学':8,'英语':8}
score={'王一安':student1,'坤坤':student2,'草子博':student3}
while True:
name=input("请问你的名字是:")
if name in score:
print ("-"*30)
for k,v in score[name].items():
print(k,v)
print ("-"*30)
elif name=='q':
break
else:
print("去你妈的冬瓜")
city = ['纽约','华盛顿','桃园岛','洛杉矶','芝加哥','旧金山']
rais = input('你想去哪里啊?')
if rais in city:
print("可以乘飞机通往"+rais)
else:
print("没有"+rais+"这座城市")
\ 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