1 import turtle 2 t = turtle.Turtle() 3 def curvemove(): 4 for i in range(200): 5 t.right(1) 6 t.forward(1) 7 t.pensize(15) 8 t.color('black', 'pink') 9 t.begin_fill() 10 t.left(140) 11 t.forward(111.65) 12 curvemove() 13 t.left(120) 14 curvemove() 15 t.forward(111.65) 16 t.end_fill() 17 turtle.done()
文字笔记请移步文章:黎姿的python学习笔记