Commit aed28972 by BellCodeEditor

save project

parent d66aa156
Showing with 6 additions and 6 deletions
l=60 import turtle
screen=turtle.Screen()
e=screen.textinput("问题","爱心要多大")
l=int(e)
import turtle screen.bgcolor("red")
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
...@@ -13,7 +13,7 @@ pen.write("你好",font=("Times",15,"normal")) ...@@ -13,7 +13,7 @@ pen.write("你好",font=("Times",15,"normal"))
pen.hideturtle() pen.hideturtle()
turtle.pendown() turtle.pendown()
pen=turtle.Pen() pen=turtle.Pen()
pen.pencolor("red") pen.pencolor("green")
pen.pensize(5) pen.pensize(5)
pen.left(45) pen.left(45)
pen.forward(l*2) pen.forward(l*2)
......
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