Commit 27d98e13 by BellCodeEditor

save project

parent fdda6dcb
Showing with 10 additions and 8 deletions
import turtle import turtle
"""画出五角星"""
pen=turtle.Pen() pen = turtle.Pen()
for i in range(5): pen.fillcolor("pink")
pen.forward(200) pen.begin_fill()
pen.right(144) for i in range(36):
pen.forward(200) # 移动200
pen.left(170) # 改变方向
pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
import turt \ No newline at end of file
\ 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