Commit 42ecf641 by BellCodeEditor

save project

parent a50ceeec
Showing with 19 additions and 0 deletions
import turtle
screen=turtle.Screen()
len=int(screen.textinput("画爱心","大小"))
turtle.bgcolor("purple")
turtle.write("你好\n诺伊",font=("Times",30,"normal"))
turtle.hideturtle()
turtle.pensize(10)
turtle.penup()
turtle.goto(45,54)
turtle.color("red")
turtle.pendown()
turtle.left(45)
turtle.forward(2*len)
turtle.circle(len,180)
turtle.right(90)
turtle.circle(len,180)
turtle.forward(2*len)
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