Commit 4ae4d286 by BellCodeEditor

auto save

parent a50ceeec
Showing with 34 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.pencolor("red")
pen.penup()
pen.goto(150,-150)
pen.pensize(20)
pen.write("玛酷机器人祝:\n张志雄同学\n彭振泽同学\n 端午节安康",font=("Times",25,"normal"))
pen.hideturtle()
#画爱心
pen1=turtle.Pen()
len=50
len=screen.textinput("提示框","你想画多大的爱心?")
a=int(len)
pen1.fillcolor("pink")
pen1.begin_fill()
pen1.pencolor("yellow")
pen1.pensize(5)
pen1.left(45)
pen1.forward(2*a)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a, 180)
pen1.forward(2*a)
pen1.end_fill()
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