Commit e8f5f12f by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen1=turtle.Pen()
screen=turtle.Screen()
pen.pensize(20)
len=screen.textinput("提示","请输入爱心大小:")
len=int(len)
pen.pencolor("purple")
screen.bgcolor("blue")
pen.left(45)
pen.forward(len)
pen.circle(len/2,180)
pen.right(90)
pen.circle(len/2,180)
pen.forward(len)
pen1.penup()
pen1.goto(20,-100)
pen1.write("若不掀起海浪\n怎惊得起浪花",font=("Times",20,"normal"))
pen.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