Commit c75332cc by BellCodeEditor

save project

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