star.py 319 Bytes Edit 1 2 3 4 5 6 7 8 9 10 import turtle ink = input("什么色?")#绘制五角星# pen = turtle.Pen() pen.fillcolor(ink) pen.begin_fill() for i in range(5): #重复执行5次 pen.forward(200) #向前移动200步 pen.right(144) #向右移动144度,注意这里的参数一定不能变 pen.end_fill() #结束填充红色 turtle.done()