Commit fd8ab20c by BellCodeEditor

save project

parent 7707e7ea
Showing with 15 additions and 10 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
#import turtle
#pen=turtle.Pen()
#pen.write("嘿,你个司马玩意儿\ n,你爸爸我回来了",font=("times",20,"normal"))
#pen.hideturtle()
#turtle.done()
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()
pen.penup()
pen.goto(0,-100)
screen.bgcolor("green")
pen.write("嘿,你个司马玩意儿\n,你爸爸我回来了",font=("Times",20,"normal"))
pen.hideturtle()
penl=turtle.Pen() penl=turtle.Pen()
pen.pencolor("red") penl.fillcolor("red")
penl.begin_fill()
penl.left(45)
penl.forward(100) penl.forward(100)
penl.right(90)
penl.circle(50,180) penl.circle(50,180)
penl.right(90)
penl.right(45)
penl.circle(50,180) penl.circle(50,180)
penl.forward(100) penl.forward(100)
penl.end_fill()
penl.hideturtle() penl.hideturtle()
pen.hideturtle() 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