Commit 027a52a5 by BellCodeEditor

save project

parent 167a2b3d
Showing with 4 additions and 2 deletions
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
import turtle import turtle
len=0 len=0
lovesize=0 lovesize=0
coler=0
screen=turtle.Screen() screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心?") len=screen.textinput("提示","你想要多大的爱心?")
lovesize=int(len) lovesize=int(len)
color=screen.textinput("提示","你想要什么颜色的爱心?")
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
...@@ -14,9 +16,9 @@ pen.write("李白äąčźĺ°†ć¬˛čˇŚďĽŚ\n忽闻岸上踏歌声。\nćˇčŠ±ć˝­ć°´ć·±ĺŤ ...@@ -14,9 +16,9 @@ pen.write("李白äąčźĺ°†ć¬˛čˇŚďĽŚ\n忽闻岸上踏歌声。\nćˇčŠ±ć˝­ć°´ć·±ĺŤ
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.speed(99999999999) pen1.speed(99999999999)
pen1.hideturtle() pen1.hideturtle()
pen1.pencolor("red") pen1.pencolor(color)
pen1.pensize(5) pen1.pensize(5)
pen1.fillcolor("red") pen1.fillcolor(color)
pen1.begin_fill() pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(lovesize*2) pen1.forward(lovesize*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