Commit 4333367a by BellCodeEditor

save project

parent 07858a54
Showing with 25 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light blue")
lie=int(screen.textinput("提示","你要多大的爱心呀?"))
import random
#lie=random.randint(30,110)
pen.pencolor("red")
pen.left(45)
pen.forward(2*lie)
pen.circle(lie,180)
pen.right(90)
pen.circle(lie,180)
pen.forward(2*lie)
pen.penup()
pen.goto(100,-100)
pen.write("老妈\n你有两个特点:\n太懒\n不做饭\n",font=("Times",15,"normal"))
pen.hideturtle()
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