Commit bfa6f29c by BellCodeEditor

auto save

parent 5a258f81
Showing with 9 additions and 13 deletions
# 利用write()帮助 # 利用write()帮助
import turtle import turtle
screen=turtle.Screen()
Pen=turtle.Pen() Pen=turtle.Pen()
Pen.hideturtle() Pen.hideturtle()
Pen.penup() Pen.penup()
Pen.goto(100,-100) Pen.goto(100,-100)
Pen.write("",font=("Times",20,"normal")) Pen.write("swfefd",font=("Times",20,"normal"))
Pen1=turtle.Pen() Pen1=turtle.Pen()
Pen1.pencolor("red") Pen1.pencolor("red")
len=screen.textinput("提示","你要多大的心")
lovesize=int(len)
Pen1.left(45) Pen1.left(45)
Pen1.forward(100) Pen1.forward(2*lovesize)
Pen1.circle(50,180) Pen1.circle(lovesize,180)
Pen1.right(90) Pen1.right(90)
Pen1.circle(50,180) Pen1.circle(lovesize,180)
Pen1.forward(100) Pen1.forward(2*lovesize)
Pen1.hideturtle() Pen1.hideturtle()
turtle.done() turtle.done()
len=60
Pen1.left(45)
Pen1.forward(2*len)
Pen1.right(90)
Pen1.circle(len,180)
turtle.done()
len=screen.textinput("gcgsdc","傻")
\ 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