Commit ac9bdfab by BellCodeEditor

auto save

parent 6456528d
Showing with 29 additions and 3 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
def huaxin():
len = int(screen.textinput('提示','你想要多大的爱心?'))
pen.pendown()
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor('pink')
pen.write(' 春咬\n TT\n春眠不觉晓,\n处处蚊子咬,\n喷上花露水,\n不知死多少。',font=('Times',20,'normal'))
pen.penup()
pen.right(90)
pen.forward(40)
pen.goto(100,-100)
pen.write(' 春咬\n TT\n春眠不觉晓,\n处处蚊子咬,\n喷上花露水,\n不知死多少。',font = ('Times',14,'bold'))
pen.penup()
pen.left(180)
pen.forward(180)
pen.pendown()
pen.color('red')
pen.pensize(5)
pen.write('hello')
pen.right(135)
huaxin()
pen.penup()
pen.goto(-50,0)
pen.left(90)
huaxin()
huaxin()
pen.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