Commit c8faf6a6 by BellCodeEditor

auto save

parent a50ceeec
Showing with 23 additions and 0 deletions
import turtle
screen=turtle.Screen()
len=screen.textinput("提示","请输入爱心的大小(10~100):")
size=int(len)
color=screen.textinput("提示","请输入爱心的颜色(red,yellow,pink,blue):")
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor(color)
pen.penup()
pen.goto(0,-100)
pen.pendown()
pen.left(45)
pen.forward(2*size)
pen.circle(size,180)
pen.right(90)
pen.circle(size,180)
pen.forward(2*size)
pen.hideturtle()
turtle.done()
\ No newline at end of file
a=input()
print(a+"5")
\ 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