Commit 5d536f0f by BellCodeEditor

save project

parent c7c33363
Showing with 4 additions and 4 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light yellow")
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.pendown() pen.pendown()
pen.write("杀马特团长,\n我在沈阳大街等你\n有你好果汁吃。",font=("time","20","normal")) pen.write("杀马特团长,\n我在沈阳大街等你\n有你好果汁吃。",font=("time","20","normal"))
len=60 len=screen.textinput("提示","你想要多大的爱心:")
len=int(len)
p=turtle.Turtle() p=turtle.Turtle()
p.pensize(5) p.pensize(5)
p.pencolor("red") p.pencolor("red")
...@@ -17,6 +20,4 @@ p.right(90) ...@@ -17,6 +20,4 @@ p.right(90)
p.circle(len,180) p.circle(len,180)
p.forward(2*len) p.forward(2*len)
p.end_fill() p.end_fill()
screen=turtle.Screen()
screen.bgcolor("light yellow")
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