Commit 9bddd20d by BellCodeEditor

save project

parent 56e706a7
Showing with 17 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
# 拿画笔
Pen = turtle.Pen()
Pen.write("我很好,谢谢.",font=("Times",20,"normal"))
# 设置画笔颜色
Pen.color("red")
# 设置画笔粗细
Pen.pensize(10)
# 画爱心
Pen.left(45)
# fd = forward
Pen.fd(100)
Pen.circle(50,180)
Pen.right(90)
Pen.circle(50,180)
Pen.fd(100)
# 隐藏画布
Pen.hideturtle()
turtle.done()
# 保留画布
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