Commit 631757ce by BellCodeEditor

save project

parent 9cdd86c6
Showing with 18 additions and 12 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light pink")
pen=turtle.Pen() pen=turtle.Pen()
#pen.write("游子吟\n[唐]孟郊\n慈母手中线\n游子身上衣\n临行密密缝\n意恐迟迟归\n谁言寸草心\n报得三春晖",font=("Times",20,"normal")) pen.penup()
pen.pencolor("red") pen.goto(190,-250)
pen.pensize("5") pen.write("游子吟\n[唐]孟郊\n慈母手中线,\n游子身上衣。\n临行密密缝,\n意恐迟迟归。\n谁言寸草心,\n报得三春晖。",font=("Times",20,"normal"))
pen.fillcolor("red")
pen.begin_fill()
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.end_fill()
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(10)
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.end_fill()
pen1.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