Commit cfc688e1 by BellCodeEditor

save project

parent 0b4fee26
Showing with 7 additions and 8 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("green")
Pen=turtle.Pen() Pen=turtle.Pen()
Pen.penup() Pen.penup()
Pen.goto(100,0) Pen.goto(100,0)
Pen.write("你好\nSB。",font=("Times",30,"normal")) Pen.write("你好\nSB。",font=("Times",30,"normal"))
Pen.hideturtle() Pen.hideturtle()
Pens=turtle.Pen() Pens=turtle.Pen()
len=screen.textinput("要多大","xi")
a=int(len)
Pens.pencolor("red") Pens.pencolor("red")
Pens.pensize(5) Pens.pensize(5)
Pens.left(45) Pens.left(45)
Pens.forward(2*a) Pens.forward(100)
Pens.circle(a,180) Pens.circle(50,180)
Pens.right(90) Pens.right(90)
Pens.circle(a,180) Pens.circle(50,180)
Pens.forward(2*a) Pens.forward(100)
screen=turtle.Screen()
screen.bgcolor("green")
turtle.done() 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