……

代码实现:

import turtle

turtle.goto(0,0)
turtle.color("blue")
turtle.pensize(5)
turtle.circle(50)
turtle.penup()

turtle.goto(100,0)
turtle.color("green")
turtle.pendown()
turtle.circle(50)

turtle.penup()

turtle.goto(200,0)
turtle.color("red")
turtle.pendown()
turtle.circle(50)

turtle.penup()

turtle.goto(50,-50)
turtle.color("orange")
turtle.pendown()
turtle.circle(50)

turtle.penup()

turtle.goto(150,-50)
turtle.color("yellow")
turtle.pendown()
turtle.circle(50)

turtle.done()

 

执行结果:

 

 posted on 2020-06-15 16:44  大码王  阅读(754)  评论(0编辑  收藏  举报
复制代码