目录

  • 效果
  • 示例代码
  • 返回Python目录

效果

太阳花python源代码 太阳花的python编程_Python

示例代码

import turtle as t
import time
t.color("red", "yellow")
t.speed(10)
t.begin_fill()
for _ in range(50):
    t.forward(200)
    t.left(170)
t.end_fill()
time.sleep(1)