Commit 5926d048 by BellCodeEditor

save project

parent d35526c1
Showing with 7 additions and 5 deletions
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
#len=input("请输入爱心大小 #len=input("请输入爱心大小
len=50 screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心")
s=int(len)
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*s)
pen.circle(len,180) pen.circle(s,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(s,180)
pen.forward(2*len) pen.forward(2*s)
pen.hideturtle() pen.hideturtle()
turtle.done() turtle.done()
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