Commit c6e88056 by BellCodeEditor

save project

parent a50ceeec
Showing with 25 additions and 0 deletions
import turtle
pen=turtle.Pen()
#背景
screen=turtle.Screen()
screen.bgcolor("blue")
#变量
len=60
#画笔颜色
pen.pensize(5)
pen.pencolor('red')
#爱心
pen.left(45)
pen.forward(2*len)#正方形边长
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
#贺卡文字
pen.penup()
pen.goto(200,-140)
pen.write('芝士\n就是力量。',font=('楷体',30,'normal'))
pen.hideturtle()#隐藏画笔
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