Commit d4137593 by BellCodeEditor

save project

parent 7195bbe7
Showing with 17 additions and 11 deletions
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
pen=turtle.pen()
pen = turtle.Pen()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.forward(100)
for i in range(5) pen.right(60)
pen.forward(200) pen.forward(100)
pen.right(144) pen.right(90)
pen.end_fill pen.forward(100)
pen.done() pen.right(60)
\ No newline at end of file pen.forward(100)
pen.right(80)
pen.forward(100)
pen.end_fill()
pen.hideturtle()
tuetle.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