Commit 706c2cac by BellCodeEditor

save project

parent 0a91fd35
Showing with 21 additions and 7 deletions
# 利用write()帮助悟空给诺依回信吧~
#导入模块
import turtle
#创建画笔
pen = turtle.Pen()
#书写回信
pen.write("这是第一行,\n这是第二行",font = ("宋体",20))
pen.hideturtle()
turtle.done()
\ No newline at end of file
# #创建画笔
# pen = turtle.Pen()
# #书写回信
# pen.write("这是第一行,\n这是第二行",font = ("宋体",20))
# pen.hideturtle()
# turtle.done()
#画爱心函数
def love(width):
pen1 = turtle.Pen()
pen1.color("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(width)
pen1.circle(width/2,180)
pen1.right(90)
pen1.circle(width/2,180)
pen1.forward(width)
pen1.hideturtle()
love(100)
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