Commit 49209fe5 by BellCodeEditor

save project

parent dd54a771
Showing with 9 additions and 2 deletions
# 利用write()帮助悟空 # 利用write()帮助悟空
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen() pen=turtle.Pen()
# pen.write("你好,贾维斯?",font=("Times",30,"normal")) pen.penup()
pen.goto(100,-100)
pen.write("你好,贾维斯?",font=("Times",13,"normal"))
pen.goto(0,0)
pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
pen.left(45) pen.left(45)
...@@ -11,4 +17,4 @@ pen.right(90) ...@@ -11,4 +17,4 @@ pen.right(90)
pen.circle(50,180) pen.circle(50,180)
pen.forward(100) pen.forward(100)
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