Commit a83cb3fb by BellCodeEditor

save project

parent a598f258
Showing with 6 additions and 4 deletions
#利用write()帮助悟空给诺依回信吧~ #利用write()帮助悟空给诺依回信吧~
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\n李子赫",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup() pen.penup()
pen.goto(100,100) len=60
pen.goto(0,-200)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") pen.pencolor("red")
...@@ -15,4 +13,7 @@ pen.circle(len,180) ...@@ -15,4 +13,7 @@ pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
pen.write("你好",font=("Times",30,"normal"))
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