Commit 41f6ea9a by BellCodeEditor

save project

parent 662d9bfa
Showing with 6 additions and 5 deletions
...@@ -10,15 +10,16 @@ pen.goto(110,-150) ...@@ -10,15 +10,16 @@ pen.goto(110,-150)
pen.write("诺依你个cxk, \nTM的是个大JJ",font=("times",20,"normal")) pen.write("诺依你个cxk, \nTM的是个大JJ",font=("times",20,"normal"))
pen.hideturtle() pen.hideturtle()
#画爱心 #画爱心
len=screen.textinput() len=screen.textinput("提示","你想要多大的爱心呀?")
DX=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(15) pen1.pensize(15)
pen1.pencolor("red") pen1.pencolor("red")
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(DX*2)
pen1.circle(len,180) pen1.circle(DX,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(DX,180)
pen1.forward(len*2) pen1.forward(DX*2)
pen1.hideturtle() pen1.hideturtle()
turtle.done() 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