Commit ffc3a019 by BellCodeEditor

save project

parent 628d1212
Showing with 6 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
from random import randint
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor('green') screen.bgcolor('green')
len=randint(50,150)
pen.pensize(2.5) pen.pensize(2.5)
pen.left(45) pen.left(45)
pen.pencolor('red') pen.pencolor('red')
pen.forward(100) pen.forward(len*2)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(len*2)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write('春晓\n春眠不觉晓\n处处蚊子咬',font=('Times',30,'normal')) pen.write('春晓\n春眠不觉晓\n处处蚊子咬',font=('Times',30,'normal'))
......
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