Commit e6bb9bb4 by BellCodeEditor

save project

parent 13b0f81a
Showing with 7 additions and 16 deletions
a=['纽约','华盛顿','旧金山']
kimjk = input('你想去哪里?')
if kimjk in city:
print("你可以乘坐飞机前往"+kimjk)
else:
print('没有'+kimjk+'这座城市')
\ No newline at end of file
a={"语文":98,"数学":91,"英语":89}
b={"语文":81,"数学":80,"英语":80}
c={"语文":91,"数学":92,"英语":84}
score={'悟空':a,'诺一':b,'小贝':c}
while True:
name = input("名字:")
if name in score:
for k,v in score[name].items():
print(k,v)
elif name =="q":
break
else:
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