Commit 9eaf94d2 by BellCodeEditor

save project

parent 64107c9f
Showing with 22 additions and 0 deletions
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("pink")
pen.penup()
pen.hideturtle()
pen.goto(100,-100)
pen.write("你好呀\n,python学习!",font = ("黑体",20,"normal"))
pen.hideturtle()
pen1 = turtle.Pen()
pen.pensize(20)
pen1.pencolor("blue")
len = screen.textinput("亲爱的妈妈","你想要多大的爱心呀!")
lovelen = int(len)
pen1.left(45)
pen1.forward(2*lovelen)
pen1.circle(lovelen,180)
pen1.right(90)
pen1.circle(lovelen,180)
pen1.forward(2*lovelen)
pen1.hideturtle()
turtle.done()
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