Commit 73be1465 by BellCodeEditor

save project

parent cc28a8e0
Showing with 16 additions and 11 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("blue")
len=screen.textinput("hh","jj")
a=int(len)
pen.pensize(10) pen.pensize(10)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(a*2)
pen.circle(50,180) pen.circle(a,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(a,180)
pen.forward(100) pen.forward(a*2)
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.penup() pen1.penup()
...@@ -15,6 +19,5 @@ pen1.goto(100,-100) ...@@ -15,6 +19,5 @@ pen1.goto(100,-100)
pen1.write("曾岩\n502",font=("times",20,"normal")) pen1.write("曾岩\n502",font=("times",20,"normal"))
pen1.pendown() pen1.pendown()
pen1.hideturtle() pen1.hideturtle()
screen=turtle.Screen()
screen.bgcolor("blue")
turtle.done() turtle.done()
\ No newline at end of file
...@@ -3,11 +3,11 @@ import turtle ...@@ -3,11 +3,11 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.pensize(10) pen.pensize(10)
pen.pencolor("red") pen.pencolor("red")
len=40 len=screen.textinput("a'a","aabbccc")
pen.left(45) pen.left(45)
pen.forward(len) pen.forward(100)
pen.circle(len,180) pen.circle(50,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(50,180)
pen.forward(len) pen.forward(100)
pen.hideturtle() pen.hideturtle()
\ 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