Commit 34742d5d by BellCodeEditor

auto save

parent df66324f
Showing with 5 additions and 2 deletions
""" """
请使用turtle模块画出五角星 请使用turtle模块画出五角星
""" """
#导入
import turtle import turtle
#设置画笔
p = turtle.Pen() p = turtle.Pen()
#循环
for i in range(5): for i in range(5):
p.forward(50) p.forward(50)
p.left(144) p.left(144)
#隐藏图标
p.hideturtle() p.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
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