Commit a84d84fa by BellCodeEditor

auto save

parent 137c7f79
Showing with 21 additions and 5 deletions
import turtle
pen=turtle.Pen()
for i in range(5):
pen.forward(100)
pen.right(144)
import turtle #引入海龟画图
pen=turtle.Pen() #创建画笔
pen.color("tomato") #画笔颜色
pen.fillcolor("gray") #设置填充颜色
pen.pensize(2) #设置画笔粗细
pen.shape("turtle") #设置 画笔形状
pen.speed(0) #设置画笔移动速度
#画一个五角星
pen.begin_fill()
for i in range(36):
pen.forward(300)
pen.right(175)
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