Commit 7c3a5dbf by BellCodeEditor

auto save

parent 654bc3ba
Showing with 26 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("诺伊,\n你爱吃薯条吗?\n",font=("Times",18,"normal"))
pen.hideturtle()
a=turtle.Pen()
l=screen.textinput("提示","你想要多大的爱心呀?")
len=int(l)
a.pencolor("red")
a.pensize(5)
a.left(45)
a.forward(2*len)
a.circle(len,180)
a.right(90)
a.circle(len,180)
a.forward(2*len)
a.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