Commit e9ee103b by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light green")
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen.penup()
pen.goto(-100,-100)
pen.write("无尽幸运方块",font=("Times",35,"normal"))
pen2=turtle.Pen()
pen2.pensize(5)
pen2.pencolor("green")
pen2.fillcolor("green")
pen2.begin_fill()
pen2.left(45)
pen2.forward(lovesize)
pen2.circle(lovesize/2,180)
pen2.right(90)
pen2.circle(lovesize/2,180)
pen2.forward(lovesize)
pen2.end_fill()
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