Commit 1cd9b571 by BellCodeEditor

save project

parent ef27deed
Showing with 4 additions and 1 deletions
...@@ -2,15 +2,18 @@ ...@@ -2,15 +2,18 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.fillcolor("#7D26CD")
pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.fd(100) pen1.fd(100)
pen1.circle(50,180) pen1.circle(50,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(50,180)
pen1.fd(100) pen1.fd(100)
pen1.end_fill()
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
screen.bgcolor("red") screen.bgcolor("#AB82FF")
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好\n诺依,我已经会\n用turtle打字了。",font=("Times",30,"normal")) pen.write("你好\n诺依,我已经会\n用turtle打字了。",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
......
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