Commit b0ffc2fb by BellCodeEditor

auto save

parent ce2e2e0b
Showing with 3 additions and 17 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
#screen.bgcolor("blue")
len=int(screen.textinput("提示","你想画的爱心的大小"))
pen=turtle.Pen() pen=turtle.Pen()
pen.pencolor("red") pen.write("你好再见",font=("Times",100,"normal"))
pen.penup()
pen.goto(100,-200)
pen.write("你看看我送你的小红花",font=("Times",15,"normal"))
pen.goto(0,0)
pen.begin_fill()
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.fillcolor("blue")
pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done() 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