diy1.py
448 Bytes
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
pen.write("岁月是把杀猪刀,\n紫了葡萄,\n黑了木耳,\n软了香蕉,除了......",font=("Times",30,"normal"))
screen=turtle.Screen()
screen.bgcolor('orange')
pen.hideturtle()
turtle.done()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
turtle.done()