Commit 40dee15f by BellCodeEditor

save project

parent ceaa9c12
Showing with 7 additions and 22 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("hi,\n你的暑假作业写完了吗?",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
len=screen.textinput("text","你想要多大的爱心呢?")
lovesize=int(len)
pen1.left(45)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
c=int (input("长"))
k=str(input("宽"))
h=c*k
print("面积为:",h)
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