简单python表⽩代码# 导⼊模块
import turtle
# ⼈
turtle.penup()
<(-100, 100)
turtle.pendown()
turtle.setheading(55)
turtle.circle(50, 280)
turtle.setheading(238)
turtle.forward(145)
turtle.setheading(-45)
turtle.circle(165, 85)
turtle.setheading(120)
turtle.forward(175)
turtle.penup()
<(-120, 120)
turtle.pendown()
turtle.forward(25)
turtle.penup()
<(-100, 140)
turtle.pendown()
turtle.forward(10)
turtle.penup()
<(-110, 105)
turtle.pendown()
turtle.setheading(15)
turtle.circle(10, 60)
turtle.penup()
<(-145, -105)
turtle.pendown()
turtle.setheading(-90)
turtle.forward(50)
turtle.penup()
<(-100, -105)
turtle.pendown()
turtle.setheading(-90)
turtle.forward(50)
turtle.penup()
<(-80, 65)
turtle.pendown()
turtle.setheading(30)
turtle.forward(65)
turtle.circle(10, 70)
turtle.forward(5)
turtle.circle(8, 60)
turtle.setheading(60)
turtle.circle(-5, 90)
turtle.setheading(-80)
turtle.forward(10)
turtle.setheading(30)
表白代码手机turtle.forward(18)
turtle.circle(-2, 180)
turtle.setheading(-150)
turtle.forward(19)
for i in range(1, 4, 1):
turtle.setheading(30)
turtle.forward(4)
turtle.circle(-2.2, 180)
turtle.forward(4.2)
turtle.setheading(170)
turtle.circle(-10, 36)
turtle.setheading(210)
turtle.forward(75)
# ⼼
turtle.penup()
<(70, 90)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor()
turtle.setheading(135)
turtle.forward(80)
turtle.circle(-40, 180)
turtle.setheading(45)
turtle.circle(-40, 180)
turtle.forward(80)
# ⼼中填字
turtle.penup()
<(48, 155)
turtle.pendown()
turtle.write('I Love You')
# 移动右下⽅填字
turtle.penup()
<(200, -300)
turtle.pendown()
turtle.write('喜欢是棋逢对⼿,但爱是⽢拜下风!') turtle.hideturtle()
turtle.done()

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。