Commit a414d7e0 by BellCodeEditor

save project

parent fadc4679
Showing with 7 additions and 6 deletions
score = {'语文':91,'数学':88,'英语':85} city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥',"旧金山"]
for k,v in score.items(): rais=input('你想去哪里啊?')
print(k,v) 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