Commit d225ea4e by BellCodeEditor

save project

parent bb2f30b5
Showing with 7 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~
len=60
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor('yellow')
len=screen.textinput("提示","你要多大的爱心")
size=int(len)
pen.penup()
pen.goto(-300,-100)
pen.write("你没鸡鸡\n,你没小鸡鸡\n",font=('Time',10,'normal'))
......@@ -12,11 +13,11 @@ p1=turtle.Pen()
p1.pencolor('red')
p1.pensize(6)
p1.left(45)
p1.forward(len*2)
p1.circle(len,180)
p1.forward(size*2)
p1.circle(size,180)
p1.right(90)
p1.circle(len,180)
p1.forward(len*2)
p1.circle(size,180)
p1.forward(size*2)
p1.hideturtle()
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