Commit 917b4c7f by BellCodeEditor

auto save

parent ee1928bd
Showing with 26 additions and 8 deletions
import turtle
screen = turtle.Screen()
screen.bgcolor("pink")
len = int(screen.textinput("爱心大小","请输入爱心的大小:"))
#写字
pen = turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.penup()
pen.goto(100,-100)
pen.pendown()
pen.write("你好,诺依\n,今天是六一儿童节",font = ("Times",20,"normal"))
pen.hideturtle()
#画爱心
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen = turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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