diff --git a/123.py b/123.py index 18b8da6..525019a 100644 --- a/123.py +++ b/123.py @@ -3,18 +3,20 @@ scr=turtle.Screen() scr.bgcolor("pink") p=turtle.Pen() p.penup() -p.goto(100,-100) -p.write("你是个SB\nSB\n就是你!",font=("Times",20,"normal")) +p.goto(0,-150) +p.write("你是个SB\nSB就是你!",font=("Times",50,"normal")) p.hideturtle() #画爱心 +a=scr.textinput("提示","你想要多大的爱心:") +len=int(a) p1=turtle.Pen() p1.pensize(5) p1.pencolor("red") p1.left(45) -p1.forward(100) -p1.circle(50,180) +p1.forward(len*2) +p1.circle(len,180) p1.right(90) -p1.circle(50,180) -p1.forward(100) +p1.circle(len,180) +p1.forward(len*2) p1.hideturtle() turtle.done() \ No newline at end of file