python 五角星 2.25

点击查看代码
from turtle import *
fillcolor("red")
begin_fill()
while True:
    forward(200)
    right(144)
    if abs(pos()) < 1:
        break
end_fill()
![](https://img2024.cnblogs.com/blog/3608895/202502/3608895-20250225095032903-745186005.png)
posted @ 2025-02-25 08:45  bolun123  阅读(12)  评论(0)    收藏  举报