Commit 7928a39e by BellCodeEditor

save project

parent dd34c19f
Showing with 11 additions and 9 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
SB.penumj
goto(100,-100)
screen.bgcoloer("pink")
SB=turtle.Pen()
SB1=turtle.Screen()
SB1.bgcolor("pink")
SB=turtle.Pen()
SB.up()
SB.goto(100,-100)
SB.write("gvgzhz,\njdjjj",font=("Times",100,"normal"))
SB.hideturtle()
len=int(SB1.textinput("提示","爱心的大小"))
hg=turtle.Pen()
hg.pencolor("red")
hg.pensize(5)
hg.left(45)
hg.forward(100)
hg.circle(50,180)
hg.forward(2*len)
hg.circle(len,180)
hg.right(90)
hg.circle(50,180)
hg.forward(100)
hg.circle(len,180)
hg.forward(2*len)
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