Commit 3f68e16e by BellCodeEditor

auto save

parent f9b6bca9
Showing with 37 additions and 5 deletions
...@@ -2,9 +2,15 @@ ...@@ -2,9 +2,15 @@
import turtle import turtle
pen= turtle.Pen() pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?") screen=turtle.Screen()
pen.circle(size) size=screen.textinput("提示","你想要多大的魔法阵呀?")
pen.circle(size,360,3) size1=int(size)
pen.circle(size,60) pen.fillcolor("blue")
pen.circle(size,360,3) pen.begin_fill()
pen.circle(size1)
pen.circle(size1,360,3)
pen.circle(size1,60)
pen.circle(size1,360,3)
pen.end_fill()
pen.hideturtle()
turtle.done() turtle.done()
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.penup()
pen.goto(100,-200)
pen.write("您好呀\n生日快乐\n天天开心",font=("Times",25,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.fillcolor("red")
pen1.pensize(5)
pen1.pencolor("blue")
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
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