Commit e1abbeea by BellCodeEditor

save project

parent edd21613
Showing with 16 additions and 5 deletions
import turtle
pen=turtle.Pen
distance = 1
for i in range(300):
pen.forward(int(distance))
for i in range(1,300):
pen.forward(i)
pen.right(91)
distance+=1
pen.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
len=screen.textinput("提示","你想要......大の爱心?")
lovesize=int(len)
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
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