Commit 0e751823 by BellCodeEditor

save project

parent 9efbc474
Showing with 21 additions and 8 deletions
import turtle
pen = turtle.Pen()
pen.shape("turtle")
pen.fillcolor("blue")
pen.begin_fill()
for i in range(7):
pen.forward(120)
pen.right(52)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
print("hello world!")
\ No newline at end of file
"""
请使用turtle模块画出五角星
"""
import turtle
pen = turtle.Pen()
pen.speed(10)
pen.fillcolor("red")
pen.shape("turtle")
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(36):
pen.forward(400)
pen.right(170)
for i in range(6):
pen.forward(130)
pen.right(60)
pen.end_fill()
pen.hideturtle()
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