Commit d12569f2 by BellCodeEditor

save project

parent abb75dde
Showing with 9 additions and 4 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
len=50
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("ababa/nbabaab",font=("sans",10,"normal")) pen.write("ababa/nbabaab",font=("sans",10,"normal"))
pen.penup() pen.penup()
...@@ -7,9 +10,11 @@ pen.goto(0,100) ...@@ -7,9 +10,11 @@ pen.goto(0,100)
pen.pendown() pen.pendown()
pen.color("red") pen.color("red")
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(2*len)
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(2*len)
pen.turtledone()
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