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

36 lines
450 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 初始设置
import turtle as t
# 画方脸
for i in range(4):
t.forward(100)
t.left(90)
# 不画线移到3020
t.penup()
t.goto(30,20)
t.pendown()
# 画三角形嘴巴
for i in range(3):
t.forward(40)
t.left(120)
# 不画线移到2080
t.penup()
t.goto(20,80)
t.pendown()
# 画左眼睛
t.dot(20)
# 不画线移到8080
t.penup()
t.goto(80,80)
t.pendown()
# 画右眼睛
t.dot(20)
t.done()