Commit ac5dd60f by BellCodeEditor

save project

parent 07858a54
Showing with 25 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
pen=turtle.Pen()
from random import randint
screen=turtle.Screen()
screen.bgcolor("blue")
pen.penup()
pen.goto(50,-200)
pen.pendown()
pen.write("半夜三更,厕所无灯。\n你去解手,掉进茅坑。\n与尿搏斗,与屎竞争。\n犹如神助,灭光尿屎。\n尿屎怕你,厕所永无马桶。",font=("Times",20,"normal"))
pen.penup()
pen.goto(-50,0)
pen.pendown()
pen.pensize(5)
len=randint(50,150)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
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