Commit 2c74a8c8 by BellCodeEditor

save project

parent 34b09d08
Showing with 11 additions and 7 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大爱心啊")
lovesize=int(len)
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("诺伊,\n我是美女",font=("Times",49,"normal"))
pen.hideturtle()
lovesize=int(len)
penl=turtle.Pen()
penl.left(45)
penl.hideturtle()
#turtle.done()
penl=turtle.Pen()
len=60
penl.left(45)
penl.forward(2*len)
penl.circle(len,180)
penl.forward(2*lovesize)
penl.circle(lovesize,180)
penl.right(90)
penl.circle(len,180)
penl.forward(2*len)
penl.circle(lovesize,180)
penl.forward(2*lovesize)
penl.hideturtle()
turtle.done()
\ No newline at end of file
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