Commit 5f326f16 by BellCodeEditor

auto save

parent 63b55469
Showing with 10 additions and 5 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
turtle.hideturtle()
size=screen.textinput('提示','你想要多大的爱心:')
len=int(size)
pen.penup()
pen.goto(200,-100)
pen.pendown()
turtle.write('你好\n我是老6\n我要偷袭你\n__老六',font=('Times',20,'normal'))
turtle.write('你好\n我是老6\n我要偷袭你\n老六',font=('Times',20,'normal'))
pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor('pink')
pen.pencolor('red')
......@@ -12,10 +16,10 @@ pen.goto(-100,0)
pen.pendown()
pen.begin_fill()
pen.left(45)
pen.forward(2*len())
pen.circle(50,180)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(50,180)
pen.circle(len,180)
pen.forward(100)
pen.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