Commit 06010eff by BellCodeEditor

save project

parent 7333193e
Showing with 12 additions and 7 deletions
import turtle import turtle
pen=turtle.Pen() pen1=turtle.Pen()
# pen.write("000\n00",font=("Times",20,"normal")) pen1.penup()
# turtle.done() pen1.goto(100,-100)
pen1.write("hi,\n我不是猪\n才怪\n--小贝",font=("Times",30,"normal"))
pen1.hideturtle()
#画爱心 #画爱心
pen.pencolor("green")
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.pencolor("red")
pen.pensize(10) pen.pensize(10)
pen.fillcolor("green") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(100)
...@@ -15,4 +21,4 @@ pen.circle(50,180) ...@@ -15,4 +21,4 @@ pen.circle(50,180)
pen.forward(100) pen.forward(100)
pen.end_fill() pen.end_fill()
pen.hideturtle() 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