Commit 44efc041 by BellCodeEditor

save project

parent f07ab1cc
Showing with 6 additions and 6 deletions
import turtle
import random
n=random.randint(10,80)
screen=turtle.Screen()
n=screen.textinput("输入","输入数字")
a=int(n)
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*n)
pen.circle(n,180)
pen.forward(2*a)
pen.circle(a,180)
pen.right(90)
pen.circle(n,180)
pen.forward(2*n)
pen.circle(a,180)
pen.forward(2*a)
pen.penup()
pen.goto(100,-100)
pen.write("rhfoig\nuhilfhus\njrgl",font=("Time",30,"normal"))
......
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