Commit 52cf6443 by BellCodeEditor

auto save

parent fc69f874
Showing with 42 additions and 0 deletions
#21
import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("HI!SB,LOOK!",font=("Times",30,"normal"))
pen1=turtle.Pen()
pen1.pensize(10)
pen1.pencolor("green")
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
turtle.done()
#SB
import turtle
screen=turtle.Screen()
screen.bgcolor("light green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("HI!LOOK!",font=("Times",30,"normal"))
len=screen.textinput(" ","你要多大的爱心啊?")
lovesize=int(len)
pen1=turtle.Pen()
pen1.pencolor("green")
pen1.pensize(10)
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
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