Commit 71301819 by BellCodeEditor

save project

parent 98ebd2b8
Showing with 87 additions and 10 deletions
#利用write()帮助悟空给诺依回信吧
#导入 画图 模
# import turtle
# pen=turtle.Pen()
# pen.write("嘻嘻嘻嘻嘻嘻嘻",font=('宋体',32,'normal'))
# turtle.done()
# import turtle
# pen1=turtle.Pen()
# pen1.crcle(-50)
# turtle.done()
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
lovesize=int(screen.textinput("标题","请输入爱心的半径"))
pen.penup()
pen.goto(100,-100)
pen.write("诺依,你好",font=("楷体",20,"normal"))
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
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