Commit 4dc42c87 by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
s=turtle.Screen()
s.bgcolor("blue")
pen.penup()
pen.goto(100,-100)
pen.write("你好,\n诺伊我是你爹",font=("Times",20,"normal"))
pen.hideturtle()
len=s.textinput("数字","爱心大小")
lovesize=int(len)
p=turtle.Pen()
p.pensize(2)
p.pencolor("red")
p.left(45)
p.forward(2*lovesize)
p.circle(lovesize,180)
p.right(90)
p.circle(lovesize,180)
p.forward(2*lovesize)
p.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