Commit 34ceabbf by BellCodeEditor

save project

parent 6a2903d5
Showing with 11 additions and 3 deletions
#利用write()帮助悟空
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("干饭人\n干饭魂\n干饭人吃饭得用盆",font=("Times",30,"normal")) pen.penup()
pen.goto(100,-100)
pen.write("干饭人\n干饭魂\n干饭人吃饭得用盆",font=("Times",10,"normal"))
pen.hideturtle() pen.hideturtle()
turtle.done
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(3) pen1.pensize(3)
...@@ -16,3 +20,6 @@ pen1.circle(50,180) ...@@ -16,3 +20,6 @@ pen1.circle(50,180)
pen1.forward(100) pen1.forward(100)
pen1.hideturtle() pen1.hideturtle()
turtle.done() turtle.done()
screen=turtle.screen()
screen.bgcoior("light blue")
\ 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