1 import turtle 2 3 turtle.screensize(1000,1000,"green") 4 5 turtle.pensize(10) 6 turtle.color(‘pink‘,‘purple‘) 7 turtle.begin_fill() 8 9 turtle.left(60) 10 turtle.forward(144) 11 12 turtle.right(60) 13 turtle.forward(144) 14 15 turtle.right(60) 16 turtle.forward(144) 17 18 turtle.right(60) 19 turtle.forward(144) 20 21 turtle.right(60) 22 turtle.forward(144) 23 24 turtle.right(60) 25 turtle.forward(144) 26 27 turtle.forward(144) 28 turtle.right(120) 29 turtle.forward(144) 30 31 turtle.left(60) 32 turtle.forward(144) 33 turtle.right(120) 34 turtle.forward(144) 35 36 turtle.left(60) 37 turtle.forward(144) 38 turtle.right(120) 39 turtle.forward(144) 40 41 turtle.left(60) 42 turtle.forward(144) 43 turtle.right(120) 44 turtle.forward(144) 45 46 turtle.left(60) 47 turtle.forward(144) 48 turtle.right(120) 49 turtle.forward(144) 50 51 turtle.left(60) 52 turtle.forward(144) 53 turtle.right(120) 54 turtle.forward(144) 55 56 turtle.end_fill()
原文:https://www.cnblogs.com/xugama/p/12460844.html