Commit ee5fcd2c by BellCodeEditor

auto save

parent 8740163d
Showing with 21 additions and 23 deletions
# 利用write()帮助悟空给诺依回信吧~ import turtle as t
import turtle t.penup()
pen=turtle.Pen() t.goto(0,-50)
screen=turtle.Screen() t.pendown()
screen.bgcolor("light blue") t.fillcolor("red")
pen.penup() t.begin_fill()
pen.goto(100,-100) t.circle(50)
pen.write("Hi, \npython真有趣",font=("Times",18,"normal")) t.end_fill()
pen.hideturtle() t.fd(50)
pen1=turtle.Pen() t.left(90)
pen1.pensize(5) t.fd(100)
len=screen.textinput("提是","多大") t.left(90)
lovesize=int(len) t.fd(100)
pen1.pencolor("red") t.left(90)
pen1.left(45) t.fd(100)
pen1.forward(2*lovesize) t.left(90)
pen1.circle(lovesize,180) t.fd(50)
pen1.right(90) t.hideturtle()
pen1.circle(lovesize,180) t.done()
pen1.forward(2*lovesize)
pen1.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