Commit d26fe5e4 by BellCodeEditor

save project

parent b597fc6d
Showing with 9 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
p=turtle.Pen()
p.write("谢谢悟空。\n",font=("Times",20,"Normal"))
p.write("谢谢悟空。"font=("Times",20,"Normal"))
p.hideturtle()
p1=turtle.Pen()
len=50
p1.pencolor("red")
p1.pensize(5)
p1.left(45)
p1.forward(2*len)
p1.circle(len,180)
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
p1.left(45)
p1.forward(2*lovesize)
p1.forward(2*lovesize)
p1.circle(lovesize,180)
p1.right(90)
p1.circle(len,180)
p1.forward(2*len)
p1.circle(lovesize,180)
p1.forward(2*lovesize)
p1.hideturtle()
turtle.done()
p2=turtle.Pen()
......
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