Commit 7fb1760b by BellCodeEditor

save project

parent fdadd6e4
Showing with 10 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(160,0)
pen.write("我\n\n\np\ny\nt\nh\no\nn",font=("times",10,"normal")) pen.write("我\n\n\np\ny\nt\nh\no\nn",font=("times",10,"normal"))
pen.hideturtle() pen.hideturtle()
p=turtle.Pen() p=turtle.Pen()
p.pensize(5) p.pensize(5)
p.color("red") p.color("red")
len=screen.textinput("提示","你要多大的爱心")
ls=(int(len))
p.left(45) p.left(45)
p.forward(100) p.forward(ls*2)
p.circle(50,180) p.circle(ls,180)
p.right(90) p.right(90)
p.circle(50,180) p.circle(ls,180)
p.forward(100) p.forward(ls*2)
p.hideturtle() p.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