Commit c75332cc by BellCodeEditor

save project

parent 173bff5f
Showing with 17 additions and 11 deletions
......@@ -2,21 +2,27 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
x=screen.textinput("爱心值","你好啊,你想要多大的爱心啊")
a=screen.textinput("爱心色","你好啊,你想要什么颜色的爱心啊")
m=screen.textinput("爱心色","你好啊,你想要写下什么啊")
x=int(x)
pen=turtle.Pen()
pen.write("你好My friend.",font=("Times",30,"normal"))
pen2=turtle.Pen()
pen2.penup()
pen2.goto(100,100)
pen2.pendown()
pen2.write(m,font = ("Time",20,"normal"))
pen2.pensize(7)
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.goto(0,-20)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.pensize(7)
pen.pencolor(a)
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.forward(2*x)
pen.circle(x,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.circle(x,180)
pen.forward(2*x)
turtle.done()
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