Commit affb9c9b by BellCodeEditor

save project

parent 33e44b34
Showing with 0 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
len=screen.textinput("提示","请输入爱心大小:")
lovesize=int(len)
pen.penup()
pen.goto(0,-100)
pen.write("霸霸\n欸",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(20)
pen1.pencolor("pink")
pen1.left(45)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
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