Commit 01cbc945 by BellCodeEditor

save project

parent cf05cc67
Showing with 2 additions and 2 deletions
import turtle import turtle
#背景颜色 #背景颜色
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light bule")
#写字 #写字
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
...@@ -12,7 +12,7 @@ pen.hideturtle() ...@@ -12,7 +12,7 @@ pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
pen1.pensize(5) pen1.pensize(5)
len=screen.textinput("提示""你TM想要多大的爱心啊?") len=80
lovesize=int(len) lovesize=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(2*lovesize) pen1.forward(2*lovesize)
......
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