Commit db11b987 by BellCodeEditor

auto save

parent 623fb1a6
Showing with 36 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.forward(200)
pen.penup()
pen.goto(0,-50)
pen.pendown()
pen.forward(200)
\ No newline at end of file
"""
请使用turtle模块画出五角星
"""
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(200,200)
pen.pendown()
pen.speed(0)
pen.color("yellow")
pen.fillcolor("red")
pen.begin_fill()
for i in range(36):
pen.forward(200)
pen.right(170)
pen.end_fill()
pen.hideturtle()
turtle.done()
'''
设置填充颜色
fillcolor()
开始填充
begin_fill()
结束填充
end_fill()
'''
\ 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