Commit 80d74e8b by BellCodeEditor

auto save

parent af498971
Showing with 9 additions and 22 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
#len=60
len=screen.textinput('提示','想要多大的心')
livesize=int(len)
screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.left(45)
pen.goto(100,-100) pen.forward(100)
pen.write('你好诺伊,\nturtle真好用',font=('Times',20,'normal')) pen.left(90)
pen.hideturtle() pen.circle(50,180)
pen1=turtle.Pen() pen.right(180)
pen1.pensize(5) pen.forward(100)
pen1.pencolor('red') pen.right(90)
pen1.left(45) pen.circle(-50,180)
pen1.forward(2*livesize) turtle.doen
pen1.circle(livesize,180)
pen1.right(90)
pen1.circle(livesize,180)
pen1.forward(2*livesize)
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