Commit 69e240dc by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.penup()
pen.goto(-200,0)
pen.color("green")
pen.write("我喜欢你\n我好爱你\n我们在一起吧\n哈哈哈哈哈哈",font=("times",18,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
len=0
len=screen.textinput("提示","你想要的爱心大小:")
a=int(len)
pen1.color("red")
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(2*a)
pen1.hideturtle()
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