Commit f1daca68 by BellCodeEditor

save project

parent 07858a54
Showing with 27 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
p=turtle.Pen()
p.pencolor("red")
p.pensize(5)
def love(len):
p.left(45)
p.forward(2*len)
p.circle(len,180)
p.right(90)
p.circle(len,180)
p.forward(2*len)
size=int(turtle.textinput("提示1","你想要多大的爱心??????????????????????????????????????????????"))
love(size)
p.hideturtle()
p1=turtle.Pen()
p1.pencolor("purple")
p1.penup()
p1.goto(-100,-100)
text=turtle.textinput("提示2","你想要写什么??????????????????????????????????????????????????????????????????????????????????????????????????????")
p1.write(text,font=("Times",18,"normal"))
p1.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