Commit 825a1398 by BellCodeEditor

save project

parent 387affce
Showing with 17 additions and 1 deletions
import turtle import turtle
screen=turtle.Screen()
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好,\n你真傻。",font=("Times",30,"normal")) pen.penup()
pen.goto(100,-100)
screen.bgcolor("pink")
pen.write("你好,\n你真傻。",font=("Times",13,"normal"))
pen.hideturtle()
a=int(screen.textinput("提示","爱心大小"))
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(a*2)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(a*2)
pen.hideturtle() pen.hideturtle()
turtle.done() 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