Commit 9d75579d by BellCodeEditor

save project

parent 9f99ec31
Showing with 13 additions and 4 deletions
...@@ -21,12 +21,20 @@ import turtle ...@@ -21,12 +21,20 @@ import turtle
# pen.forward(2*len) # pen.forward(2*len)
# turtle.done() # turtle.done()
pen = turtle.Pen() pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor("blue")
len = screen.textinput("爱心","大小")
len = int(len)
pen.color("green") pen.color("green")
pen.pensize(6) pen.pensize(6)
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(2*len)
pen1 = turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("我是嫩爹,马雷个逼",font=("宋体",10,"normal"))
turtle.done() 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