Commit 84d11823 by BellCodeEditor

auto save

parent c2f1308f
Showing with 29 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file # 导入模块
import turtle
# 创建画笔
pen = turtle.Pen()
# 设置画笔属性
pen.pensize(20)
pen.pencolor("blue")
# 设置填充颜色
pen.fillcolor("red")
#开始填充
pen.begin_fill()
len = 60
pen.left(45)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.left(90)
pen.forward(2*len)
# 结束填充
pen.end_fill()
# 固定画布
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