Commit 05b9137c by BellCodeEditor

save project

parent 2ede1c00
Showing with 17 additions and 16 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
len=screen.textinput("你要多大爱心?")
love=int(len)
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,-100)
pen.pendown() pen.write("小歆快",("Times",30,"normal"))
pen.pensize(5) pen.hideturtle()
pen.pencolor("red") pen1=turtle.Pen()
pen.left(45) pen1.pensize(5)
pen.forward(2*len) pen1.pencolor("red")
pen.circle(len,180) pen1.left(45)
pen.right(90) pen1.forward(2*love)
pen.circle(len,180) pen1.circle(love,180)
pen.forward(2*len) pen1.right(90)
turtle.done() pen1.circle(love,180)
pen1.forward(love*2)
pen1.hideturtle()
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