Commit 5f326f16 by BellCodeEditor

auto save

parent 63b55469
Showing with 10 additions and 5 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
turtle.hideturtle()
size=screen.textinput('提示','你想要多大的爱心:')
len=int(size)
pen.penup() pen.penup()
pen.goto(200,-100) 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=turtle.Screen()
screen.bgcolor('pink') screen.bgcolor('pink')
pen.pencolor('red') pen.pencolor('red')
...@@ -12,10 +16,10 @@ pen.goto(-100,0) ...@@ -12,10 +16,10 @@ pen.goto(-100,0)
pen.pendown() pen.pendown()
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.forward(2*len()) 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(100)
pen.end_fill() pen.end_fill()
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