Commit 223d0b9c by BellCodeEditor

save project

parent bcb47274
Showing with 9 additions and 8 deletions
import turtle import turtle
pen1=turtle.Pen() pen1=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("bulle") screen.bgcolor("blue")
pen1.penup() pen1.penup()
pen1.goto(100,-100) pen1.goto(100,-100)
pen1.write("诺依,\n我会在画布上写字了,\nturtle真好用!",font=("Times",20,"normal")) pen1.write("诺依,\n我会在画布上写字了,\nturtle真好用!",font=("Times",20,"normal"))
pen1.hideturtle() pen1.hideturtle()
pen=turtle.Pen() pen=turtle.Pen()
pen.fillcolor("pink")
pen.begin_fill()
pen.pensize(5) pen.pensize(5)
len=70
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(2*len)
pen.end_fill()
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
pen1.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