Commit 3cbf2dc0 by BellCodeEditor

save project

parent d792e09e
Showing with 12 additions and 1 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
a=60
pen.fillcolor("red")
pen.penup()
pen.goto(0,-100)
pen.write("你好呀",font=("Times",20,"normal"))
pen.goto(0,0)
pen.pendown()
pen.begin_fill()
a=screen.textinput("提示","你想要多大?")
a=int(a)
screen.bgcolor("green")
pen.left(45)
pen.forward(a*2)
......@@ -9,4 +17,6 @@ pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(a*2)
pen.end_fill()
pen.hideturtle()
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