Commit 08e4be74 by BellCodeEditor

save project

parent c9266bcf
Showing with 1 additions and 2 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心呀?") len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len) len=int(len)
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("诺依,\nturtie真好用,\n我会在画布上写字啦!",font=("Times",20,"normal")) pen.write("诺依,\nturtie真好用,\n我会在画布上写字啦!",font=("Times",20,"normal"))
...@@ -10,7 +10,6 @@ pen.goto(-100,100) ...@@ -10,7 +10,6 @@ pen.goto(-100,100)
pen.pendown() pen.pendown()
pen.hideturtle() pen.hideturtle()
pen.pensize(5) pen.pensize(5)
len=60
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
......
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