Commit 61bb07cf by BellCodeEditor

save project

parent 330785c1
Showing with 11 additions and 15 deletions
import turtle # 假期到了,诺依想出去玩,但不知道有没有飞机直达那里,
turtle.pensize(10) # 悟空做了个小程序帮助诺依,然而代码出现了3处错误。
turtle.color("black","blue") # 请你找出来,并运行~
turtle.begin_fill() city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥','旧金山']
turtle.circle(50) raisee=input('你想去哪里啊?')
turtle.end_fill() if raisee in city:
turtle.seth(90) print('可以乘坐飞机通往'+raisee)
turtle.forward(90) else:
turtle.seth(60) print('没有'+raisee+'这座城市')
turtle.forward(180)
turtle.home()
turtle.seth(-90)
turtle.forward(90)
turtle.seth(-60)
turtle.forward(180)
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
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