Commit 64b69ac8 by BellCodeEditor

auto save

parent 98a5f8f8
Showing with 22 additions and 1 deletions
# import turtle # import turtle
# pen=turtle.Pen() # pen=turtle.Pen()
# pen.write("你好",font=("Times",18,"normal")) # pen.write("你好",font=("Times",18,"normal"))
# pen.hideturtle()
from turtle import *
pen1.pensi 2 def curvemove(): #这个函数是为了绘制爱心上方的曲线
3 for i in range(200):4 right(1)5 fd(1)6
7 pensize(2) #调整画笔粗细
8 speed(10) #调节画笔速度
9 color('red','red') #画笔颜色及填充颜色
10 begin_fill() #开始填充
11 left(140)12 fd(111.65)13 curvemove() #调用函数
14 left(120)15 curvemove() #调用函数
16 fd(111.65)17 end_fill() #结束填充
18 hideturtle() #隐藏画笔
19 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