sairate 7df250638d chore: 添加项目基础结构和示例代码
- 创建 .idea 目录和相关配置文件,设置项目结构
- 添加多个课堂成果示例代码,涵盖不同主题和功能
- 创建和配置 .gitignore 文件,忽略特定文件和目录
2025-07-05 09:36:00 +08:00

36 lines
591 B
Python

#导入模块,设置画笔尺寸
import turtle as t
t.pensize(10)
#设置初始位置
t.penup()
t.goto(0,-300)
t.pendown()
#绘制叶片
t.color('green','green')
t.begin_fill()
t.setheading(90)
t.circle(150,80)
t.setheading(-90)
t.circle(150,80)
t.setheading(90)
t.circle(-150,80)
t.setheading(-90)
t.circle(-150,80)
t.end_fill()
#绘制花杆
t.pencolor('brown')
t.goto(0,0)
#绘制花瓣
t.setheading(0)
t.color('red','red')
t.begin_fill()
for i in range(5):
t.circle(50)
t.left(72)
t.end_fill()
#绘制花蕊
t.pencolor('yellow')
t.dot(100)
#隐藏画笔
t.hideturtle()
t.done()