Commit 10177e66 by BellCodeEditor

save project

parent 34b31c31
Showing with 7 additions and 4 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("yellow") screen.bgcolor("yellow")
len=screen.textinput("填空","要多大爱心")
lovesize=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.penup() pen1.penup()
pen1.goto(100,-100) pen1.goto(100,-100)
...@@ -9,11 +12,11 @@ pen1.begin_fill() ...@@ -9,11 +12,11 @@ pen1.begin_fill()
pen1.pencolor("green") pen1.pencolor("green")
pen1.pensize(10) pen1.pensize(10)
pen1.left(45) pen1.left(45)
pen1.fd(len*2) pen1.fd(lovesize*2)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.fd(len*2) pen1.fd(lovesize*2)
pen1.end_fill() pen1.end_fill()
pen1.write("SCVUDYW\n EFUITF W7",font=("Time",30,"normal")) pen1.write("SCVUDYW\n EFUITF W7",font=("Time",30,"normal"))
pen1.hideturtle() pen1.hideturtle()
......
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