Commit ba949f4c by BellCodeEditor

save project

parent 7cbdc9f0
Showing with 23 additions and 1 deletions
...@@ -2,11 +2,29 @@ ...@@ -2,11 +2,29 @@
import turtle import turtle
a=turtle.Pen() a=turtle.Pen()
b=turtle.Screen() b=turtle.Screen()
a.pencolor("yellow") a.pencolor("yellow")
b.bgcolor("black") b.bgcolor("light blue")
a.write("我和\n多米",font=("kaiti",70,"normal")) a.write("我和\n多米",font=("kaiti",70,"normal"))
a.penup()
a.goto(-100,0)
a.pendown()
len=int(b.textinput("尺寸","尺寸顶呱呱"))
a.fillcolor("yellow")
a.begin_fill()
a.left(45)
a.forward(len*2)
a.circle(len,180)
a.left(-90)
a.circle(len,180)
a.forward(len*2)
a.end_fill()
...@@ -16,6 +34,10 @@ a.write("我和\n多米",font=("kaiti",70,"normal")) ...@@ -16,6 +34,10 @@ a.write("我和\n多米",font=("kaiti",70,"normal"))
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