Commit 55c71337 by BellCodeEditor

save project

parent 623fb1a6
Showing with 15 additions and 3 deletions
""" import turtle
请使用turtle模块画出五角星 #请使用turtle模块画出五角星
""" pen = turtle.Pen()
pen.shape("turtle")
pen.fillcolor("red")
pen.begin_fill()
num = (180-180*3/5)*2
print(num)
for i in range(5):
pen.right(num)
pen.forward(200)
pen.hideturtle() #隐藏画笔图标
pen.end_fill()
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