Commit 3ee47a10 by BellCodeEditor

save project

parent 6c6412a0
Showing with 5 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen =turtle.Pen() pen =turtle.Pen()
pen.up() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("床前明月光,\n疑是地上霜。",font=('Times',25,'bold')) pen.write("床前明月光,\n疑是地上霜。",font=('Times',30,'bold'))
pen.hideturtle() pen.goto(0,0)
turtle.done() pen.pendown()
pen=turtle.Pen()
pen.color("red") pen.color("red")
pen.pensize(5) pen.pensize(5)
pen.left(45) pen.left(45)
...@@ -15,6 +14,7 @@ pen.circle(50,180) ...@@ -15,6 +14,7 @@ pen.circle(50,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(50,180)
pen.goto(0,0) pen.goto(0,0)
turtle.bgcolor("pink")
pen.hideturtle() pen.hideturtle()
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