Commit f3e0a207 by BellCodeEditor

save project

parent 954b2f90
Showing with 8 additions and 5 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("3.14159\n26535\n89793\n23079\n63433",font=("Times",10,"normal")) pen.write("3.14159\n26535\n89793\n23079\n63433",font=("Times",10,"normal"))
...@@ -11,10 +11,12 @@ len=99 ...@@ -11,10 +11,12 @@ len=99
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(10) pen1.pensize(10)
pen1.pencolor("red") pen1.pencolor("red")
len=screen.textinput("提示","多大?")
wx=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(wx*2)
pen1.circle(len,180) pen1.circle(wx,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(wx,180)
pen1.forward(len*2) pen1.forward(wx*2)
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