Commit 578e1fbd by BellCodeEditor

save project

parent 9c4fa246
Showing with 65 additions and 17 deletions
# 假期到了,诺依想出去玩,但不知道有没有飞机直达那里, import turtle
# 悟空做了个小程序帮助诺依,然而代码出现了3处错误。 p=turtle.Pen()
# 请你找出来,并运行~ p.penup()
city = ['纽约','华盛顿','桃源岛','洛杉矶','芝加哥',旧金山] p.goto(177,122)
raise=input('你想去哪里啊?') p.pencolor("lightgray")
if raise in city p.pensize(3)
print('可以乘坐飞机通往'+raise) p.fillcolor("white")
else: p.begin_fill()
print('没有'+raise+'这座城市') p.pendown()
\ No newline at end of file p.setheading(80)
p.circle(-45,200)
p.circle(-300,23)
p.end_fill()
p.penup()
p.goto(182,95)
p.pencolor("black")
p.pensize(1)
p.fillcolor("black")
p.begin_fill()
p.setheading(95)
p.pendown()
p.circle(-37,160)
p.circle(-20,50)
p.circle(-200,30)
p.end_fill()
p.penup()
p.goto(-73,230)
p.pencolor("lightgray")
p.pensize(1)
p.fillcolor("white")
p.begin_fill()
p.pendown()
p.setheading(20)
p.circle(-250,35)
p.setheading(50)
p.circle(-42,180)
p.setheading(-50)
p.circle(-190,30)
p.circle(-320,45)
p.circle(120,20)
p.circle(200,12)
p.circle(-18,85)
p.circle(-180,23)
p.circle(-20,110)
p.circle(15,115)
p.circle(100,12)
p.circle(15,120)
p.circle(-15,110)
p.circle(-150,30)
p.circle(-15,70)
p.circle(-150,10)
p.circle(200,35)
p.circle(-150,20)
p.setheading(-120)
p.circle(50,30)
p.circle(-35,200)
p.circle(-300,23)
p.setheading(86)
p.circle(-300,26)
p.setheading(122)
p.circle(-53,160)
p.end_poly()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
# 下面的这段代码一共有5处错误,每一行都有一种典型的语法错误,请修改~
for i in range(1,8)
print'克洛诺斯将第' + str(i) + '个孩子吞进肚子里'
if i = 5:
break
print('第6个孩子宙斯逃过一劫。)
\ 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