python用小海龟画小汽车

import turtle
x=turtle.Turtle()
x.shape(‘turtle’)
x.color(‘red’)
x.begin_fill()
x.forward(200)
x.right(90)
x.forward(100)
x.left(90)
x.forward(200)
x.right(90)
x.forward(100)
x.right(90)
x.forward(400)
x.right(90)
x.forward(200)
x.end_fill()
x.right(180)
x.forward(200)
x.penup()
x.forward(100)
x.left(90)
x.forward(100)
x.pendown()
x.color(‘black’)
x.begin_fill()
x.circle(60)
x.end_fill()
x.penup()
x.forward(200)
x.pendown()
x.begin_fill()
x.circle(60)
x.end_fill()
turtle.exitonclick()
python小海龟画小汽车

相关文章:

  • 2021-08-28
  • 2022-02-21
  • 2022-01-16
  • 2021-12-05
  • 2021-08-12
  • 2022-02-09
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2022-01-01
  • 2021-06-08
  • 2021-12-29
  • 2021-06-02
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
相关资源
相似解决方案