Commit 6dd25ca3 by BellCodeEditor

save project

parent cd9bdad9
Showing with 1 additions and 20 deletions
import turtle import turtle
screen=turtle.Screen()
len=5
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write('你好 \n xxx',font=('Times',20,'normal'))
pen=turtle.Pen() pen=turtle.Pen()
pen.left(45) pen.write("1234567890",font=("Times","30","normal"))
le=screen.textinput("提示","你想要多大的爱心?")
len=int(le)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen1.hideturtle()
pen.hideturtle() pen.hideturtle()
pen.forward(2*len)
turtle.done() turtle.done()
\ No newline at end of file
\ 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