Commit 6ca0d9dc by BellCodeEditor

save project

parent 88e68e8e
Showing with 2 additions and 5 deletions
'''
请使用turtle模块画出五角星
'''
import turtle import turtle
a=turtle.pen() a=turtle.pen()
a.color("red") a.color("red")
a.begin_fill() a.begin_fill()
For i in range(5) For i in range(36)
pen.forward(200) pen.forward(200)
pen.right(144) pen.right(170)
a.end_fill() a.end_fill()
pen.hideturtle() pen.hideturtle()
pen.done() pen.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