Commit b8575171 by BellCodeEditor

save project

parent 623fb1a6
Showing with 16 additions and 0 deletions
"""
请使用turtle模块画出五角星
"""
# 导入库
import turtle
# 设置画笔
p = turtle.Pen()
# 设置画笔图标
p.shape("turtle")
# 循环画图
for i in range(5):
# 移动200步
p.forward(200)
# 改变画笔方向
p.right(144)
# 隐藏画笔
p.hideturtle()
# 画布一直出现
turtle.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment