Commit 28007004 by BellCodeEditor

save project

parent f2eda40d
Showing with 25 additions and 10 deletions
import turtle
#初始化
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("pink")
pen.pensize(5)
pen.fillcolor("red")
pen.penup()
#贺卡的文字
pen.goto(100,-100)
pen.write("诺依,你好\nabcd\n")
#画爱心
pen.begin_fill()
pen.goto(0,0)
pen.pendown()
pen.left(45)
pen.forward(100)
pen.circle(50,180)
#pen.right(90)
pen.setheading(135)
pen.circle(50,180)
pen.forward(100)
pen.end_fill()
turtle.done()
import turtle
pem=turtle.Pen()
pen.goto(0,0)
pen.left(45)
pen.pendown()
pen.forword(100)
pen.circle(50,180)
pen.forword(100)
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