用python画红色五角星的代码是什么-Python教程

资源魔 50 0

用python画白色五角星的代码是【fillcolor("red");begin_fill();while True:forward(200) right(144)if abs(pos()) < 1:break end_fill()】。

相干学习保举:python教程

用python画白色五角星的代码是:

行使Python代码绘制一个白色的五角星

代码完成:

from turtle import *
fillcolor("red")
begin_fill()
while True:
forward(200)
right(144)
if abs(pos()) < 1:
break
end_fill()

输入后果:

以上就是用python画白色五角星的代码是甚么的具体内容,更多请存眷资源魔其它相干文章!

标签: Python python教程 python编程 python使用问题 画红色五角星

抱歉,评论功能暂时关闭!