Commit 5e54418c by BellCodeEditor

save project

parent a5e43a2c
Showing with 6 additions and 6 deletions
import turtle import turtle
pen1=turtle.Pen() pen1=turtle.Pen()
len=50
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") len=screen.textinput("e","多大")
lonesize=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(len) pen1.forward(lonesize)
pen1.circle(len/2,180) pen1.circle(lonesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(len/2,180) pen1.circle(lonsize,180)
pen1.forward(len) pen1.forward(lonesize)
pen1.hideturtle() pen1.hideturtle()
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
......
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