Commit 2c023b1c by BellCodeEditor

save project

parent 566246dc
Showing with 4 additions and 8 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() # pen=turtle.Pen()
pen.color("red") # pen.color("red")
pen.goto(-200,20) # pen.write("[^~^]",font=("times",30,"normal"))
pen.write("[^~^]",font=("times",30,"normal")) # pen.hideturtle()
pen.hideturtle()
p=turtle.Pen() p=turtle.Pen()
p.pensize(11) p.pensize(11)
p.pencolor("red") p.pencolor("red")
...@@ -15,6 +14,4 @@ p.right(90) ...@@ -15,6 +14,4 @@ p.right(90)
p.circle(50,180) p.circle(50,180)
p.forward(100) p.forward(100)
p.hideturtle() p.hideturtle()
s=turtle.Screen()
s.bgcolor("blue")
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