Commit 3d0b6a74 by BellCodeEditor

save project

parent 8e311f0d
Showing with 8 additions and 7 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
ji=screen.
ji1=screen.
len=40 len=40
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
blue=screen.textinput("提示","爱心你要画多大")
blue1=int(blue)
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
...@@ -14,9 +14,9 @@ pen1=turtle.Pen() ...@@ -14,9 +14,9 @@ pen1=turtle.Pen()
pen1.pensize(30) pen1.pensize(30)
pen1.pencolor("red") pen1.pencolor("red")
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(blue1*2)
pen1.circle(len,180) pen1.circle(blue1,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(blue1,180)
pen1.forward(len*2) pen1.forward(blue1*2)
turtle.done() turtle.done()
\ No newline at end of file
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