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

13 lines
490 B
Python
Raw Permalink 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 #导入turtle模块起别名t
t.forward(100) #画边长为100的线段
t.right(144) #原地右转144度
t.forward(100) #画边长为100的线段
t.right(144) #原地右转144度
t.forward(100) #画边长为100的线段
t.right(144) #原地右转144度
t.forward(100) #画边长为100的线段
t.right(144) #原地右转144度
t.forward(100) #画边长为100的线段
t.right(144) #原地右转144度
t.done() #停止画笔绘制,但绘图窗体不关闭