Commit c094d84f by BellCodeEditor

save project

parent 623fb1a6
Showing with 43 additions and 3 deletions
"""
请使用turtle模块画出五角星
"""
# age=12
# name='我今年'
# sui='岁'
# print(name+str(age)+sui)
import turtle
pen=turtle.Pen()
pen.pendown()
pen.pensize(5)
pen.pencolor('black')
pen.fillcolor('red')
pen.shape('turtle')
pen.begin_fill()
pen.speed(0)
for i in range(100):
pen.forward(200)
pen.right(200)
pen.end_fill()
pen.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