Commit d9db8185 by BellCodeEditor

auto save

parent a892d00d
Showing with 3 additions and 4 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("red") screen.bgcolor("blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("452686456\n78346780932",font=("Times",15,"normal")) pen.write("452686456\n78346780932",font=("Times",15,"normal"))
penl=turtle.Pen() penl=turtle.Pen()
penl.penup() penl.penup()
penl.goto(-100,0) penl.goto(-100,0)
len=int(turtle.textinput("提示","数字")) len=int(turtle.textinput("提示","数字"))
pen=turtle.Pen()
penl.pendown()
penl.left(45) penl.left(45)
penl.forward(2*len) penl.forward(2*len)
penl.circle(len,180) penl.circle(len,180)
...@@ -16,5 +15,5 @@ penl.right(90) ...@@ -16,5 +15,5 @@ penl.right(90)
penl.circle(len,180) penl.circle(len,180)
penl.forward(2*len) penl.forward(2*len)
penl.hideturtle penl.hideturtle
turtle.done() pen.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