Commit 7a5481f7 by BellCodeEditor

auto save

parent 397ca244
Showing with 10 additions and 8 deletions
++ "b/rgxsg\343\200\202py"
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
pen=turtle.Pen() g=turtle.Pen()
for i in range(5): g.fillcolor("red")
pen.forward(100) g.begin_fill()
pen.right(144) g.circle(50)
pen.hideturtle() g.pencolor("yellow")
g.fillcolor("green")
g.circle(50,steps=5)
g.end_fill()
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