Commit 1bc44523 by BellCodeEditor

save project

parent 068a10f0
Showing with 5 additions and 2 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
#导入 #导入
import turtle import turtle
# #创建画笔
p=turtle.Pen() p=turtle.Pen()
#隐藏画笔 #隐藏画笔
p.hideturtle() p.hideturtle()
#循环画出五角星
for i in range(5): for i in range(5):
#移动200步
p.forward(200) p.forward(200)
#向右旋转144°
p.right(144) p.right(144)
#固定画布 #固定画布
......
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