Python五角星画法 import turtle as t t.setup(1200,800) t.pensize(3) t.pencolor("yellow") t.fillcolor("red") t.begin_fill() for i in range(5): t.fd(200) t.right(144) t.fd(200) t.right(-72) t.end_fill() t.done()