使用turtle库画同切圆

import turtle as t
t.setup(600,600,None,None)
t.pensize(5)
t.penup()
t.pendown()
t.pencolor("red")
t.circle(80)
t.penup()
t.pendown()
t.pencolor("green")
t.circle(100)
t.penup()
t.pendown()
t.pencolor("black")
t.circle(120)
t.penup()
t.pendown()
t.pencolor("pink")
t.circle(140)

t.done()

  

猜你喜欢

转载自www.cnblogs.com/cnn-ljc/p/12497156.html
今日推荐