Commit cb706dca by BellCodeEditor

save project

parent fa86bf51
Showing with 10 additions and 8 deletions
import turtle
pen=turtle.Pen()
pen.goto(0,-100)
screen=turtle.Screen()
screen.bgcolor("red")
len=textinput("提示","大小为?(只能用整数)")
len=screen.textinput("提示","大小为?(只能用整数)")
a=int(len)
pen.penup()
pen.write("bellcode的盗版不好玩,\nMicrosoft的正版,\n好玩!!!",font=("Times",30,"normil"))
pen.goto(0,-100)
pen.write("bellcode是盗版的不好玩,\nMicrosoft的正版,\n好玩!!!",font=("Times",30,"normal"))
pen.hideturtle()
penl=turtle.Pen()
penl.color("red")
penl.color("green")
penl.pensize(10)
penl.fillcolor("red")
penl.fillcolor("black")
penl.begin_fill()
penl.left(45)
penl.forward(2*a)
penl.circle(50,180)
penl.circle(a,180)
penl.right(90)
penl.circle(50,180)
penl.forward(100)
penl.circle(a,180)
penl.forward(2*a)
penl.end_fill()
turtle.done()
\ 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