Commit ace5e035 by BellCodeEditor

save project

parent 3886b4b1
Showing with 5 additions and 4 deletions
...@@ -5,13 +5,14 @@ screen.bgcolor("light blue") ...@@ -5,13 +5,14 @@ screen.bgcolor("light blue")
#写字 #写字
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.while ("Hi, 诺依~\n",font=("Times",20,"normai") ) pen.goto(100,-100)
pen.hideturtie() pen.write("Hi, 诺依~\n",font=("Times",20,"normal") )
pen.hideturtle()
#画爱心 #画爱心
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
pen1.pensize(5) pen1.pensize(5)
len=screen.textinput("你想要,多大的爱心?") len=50
lovesize=int(len) lovesize=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(2*lovesize) pen1.forward(2*lovesize)
...@@ -19,7 +20,7 @@ pen1.circle(lovesize,180) ...@@ -19,7 +20,7 @@ pen1.circle(lovesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(lovesize,180) pen1.circle(lovesize,180)
pen1.forward(2*lovesize) pen1.forward(2*lovesize)
pen1.hideturtie() pen1.hideturtle()
turtle.done() turtle.done()
......
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