Commit 5005da8b by BellCodeEditor

save project

parent 64b69ac8
Showing with 13 additions and 28 deletions
# import turtle import turtle
# pen=turtle.Pen() pen1=turtle.Pen()
# pen.write("你好",font=("Times",18,"normal")) pen1.pencolor("red")
# pen.hideturtle() pen1.pensize(5)
from turtle import * pen1.left(45)
pen1.forward(100)
2 def curvemove(): #这个函数是为了绘制爱心上方的曲线 pen1.circle(50,180)
pen1.right(90)
3 for i in range(200):4 right(1)5 fd(1)6 pen1.circle(50,180)
pen1.forward(100)
7 pensize(2) #调整画笔粗细 pen1.hideturtle()
turtle.done()
8 speed(10) #调节画笔速度 \ No newline at end of file
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