Commit a861edc8 by BellCodeEditor

save project

parent 54fb7ec7
Showing with 6 additions and 0 deletions
#利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.write("\n唧唧复唧唧,木兰当户织。\n不闻机杼声,唯闻女叹息。\n问女何所思,问女何所忆。\n女亦无所思,女亦无所忆。\n昨夜见军帖,可汗大点兵。\n军书十二卷,卷卷有爷名。\n阿爷无大儿,木兰无长兄。\n愿为市鞍马,从此替爷征。",font=("times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.goto(20,-150)
pen1.pensize(10)
pen1.pencolor("red")
pen1.fillcolor("blue")
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()
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