Commit 5c37b5f9 by BellCodeEditor

save project

parent 76526b73
Showing with 21 additions and 0 deletions
import turtle
# pen = turtle.Pen()
# pen.write("喜结良缘 \n新娘:张哲瀚\n新郎:龚俊")
# turtle.done()
screen = turtle.Screen()
screen.bgcolor("red")
a=screen.textinput("提示","想画多大的圆?")
len = float(a)
pen = turtle.Pen()
pen1 = turtle.Pen()
pen1.left(45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
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