Commit 2e48d93e by BellCodeEditor

save project

parent c74c9db4
Showing with 11 additions and 5 deletions
import turtle import turtle
len=40
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.write("春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。\n",font=("Times",20,"normal"))
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.penup()
pen.goto(100,0)
pen.write("春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。\n",font=("Times",20,"normal"))
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