Commit e70afd4a by BellCodeEditor

save project

parent 07858a54
Showing with 35 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("yellow")
pen=turtle.Pen()
pen.penup()
pen.goto(0,-140)
pen.write("爱而不藏,\n自取灭亡\n孤寡孤寡孤寡",font=("Times",30,"normal"))
pen.shape("turtle")
#
pen1=turtle.Pen()
len=50
#for i in range(10):
#len=len+5
len=screen.textinput("提示","你想要多大的爱心?")
wb=int(len)
pen1.shape("turtle")
pen1.pensize(10)
pen1.pencolor("red")
pen1.begin_fill()
pen1.fillcolor("light green")
pen1.left(45)
pen1.forward(2*wb)
pen1.circle(wb,180)
pen1.right(90)
pen1.circle(wb,180)
#pen.left(45)
pen1.forward(2*wb)
pen1.end_fill()
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