应用题
2.
使用turtle库绘制红色五角星图形,效果如下图所示。阅读程序框架,补充横线处代码。
【正确答案】
from turtle import *
setup(400,400)
penup()
goto(-100,50)
pendown()
color("red")
begin_fill()
for i in range(5):
forward(200)
right(144)
end_fill()
hideturtle()
done()
【答案解析】
提交答案
关闭