Commit e5d2e3d7 by BellCodeEditor

save project

parent dc6069fd
Showing with 17 additions and 7 deletions
city=['纽约','华盛顿','桃源岛']
info=input('你想去那里玩?')
if info in city:
print('可以乘坐飞机通往'+info)
else:
print('没有'+info+这座城市')
...@@ -4,15 +4,17 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,15 +4,17 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
name = input("名字:") name = input("名字:")
break
print("*"*30) print("*"*30)
if name in score: if name in score:
info=score[name] info=score[name]
for k,v in one.items(): for k,v in info.items():
print(k,v) print(k,v)
elif name==J
elif name=='q':
break break
else: else:
print(您的输入有误,请重新输入!) 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