Commit 04117d3a by BellCodeEditor

save project

parent ba114c23
Showing with 12 additions and 11 deletions
......@@ -2,27 +2,28 @@
import turtle
screen=turtle.Screen()
screen.bgcolor("light pink")
screen.textinput("❤","你想要多大的爱心:")
screen.textinput("提示","你想要多大的爱心:")
lovesize=int(len)
lovesize=float(len)
pen=turtle.Pen()
pen.hideturtle()
pen.color("black")
pen.up()
pen.goto(100,-300)
pen.down()
pen.write("你好,\nSB诺伊\n,我会用python\n写字了!!!SBSB",font=("黑体",25,"normal"))
# pen.color("black")
# pen.up()
# pen.goto(100,-300)
# pen.down()
# pen.write("你好,\nSB诺伊\n,我会用python\n写字了!!!SBSB",font=("黑体",25,"normal"))
pen.color("red")
pen.fillcolor("red")
pen.begin_fill()
l=60
pen.pensize(30)
pen.up()
pen.goto(-200,-100)
pen.down()
pen.lt(45)
pen.fd(l*2)
pen.circle(l,180)
pen.fd(lovesize*2)
pen.circle(lovesize,180)
pen.rt(90)
pen.circle(l,180)
pen.fd(l*2)
pen.circle(lovesize,180)
pen.fd(lovesize*2)
pen.end_fill()
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