Commit fbce1c85 by BellCodeEditor

save project

parent 3663154b
Showing with 8 additions and 6 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\n 诺依,\n我已经学会使用turtlee.",font=("Times",30,"normal")) pen.write("你好\n 诺依,\n我已经学会使用turtlee.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -9,11 +10,12 @@ pen.penup() ...@@ -9,11 +10,12 @@ pen.penup()
pen.goto(-100,0) pen.goto(-100,0)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("blue")
len=30
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(len*2)
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(len*2)
turtle.done() turtle.done()
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