Commit 9132c467 by BellCodeEditor

auto save

parent 07858a54
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
from random import randint
pen=turtle.Pen()
len1=screen.textinput('提示','你想画多大的爱心?:')
len2=int(len1)
screen=turtle.Screen()
screen.bgcolor('green')
len=randint(50,150)
pen.pensize(2.5)
pen.left(45)
pen.pencolor('red')
pen.forward(len2*2)
pen.circle(len2,180)
pen.right(90)
pen.circle(len2,180)
pen.forward(len2*2)
pen.penup()
pen.goto(100,-100)
pen.write('春晓\n春眠不觉晓\n处处蚊子咬',font=('Times',30,'normal'))
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