代码实现:
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()
执行结果:
本文来自博客园,作者:大码王,转载请注明原文链接:https://www.cnblogs.com/huanghanyu/