Commit 9d7f4a63 by BellCodeEditor

save project

parent 88a0e3c4
Showing with 5 additions and 2 deletions
......@@ -15,6 +15,7 @@ pen.color("red")
# 设置画笔粗细
pen.pensize(10)
# 画爱心
len = int(sereen.textinpiut("提示","请输入爱心的大小"))
pen.left(45)
# 正方形边长为圆的直径:2*len
# fd = forword
......@@ -35,4 +36,7 @@ pen.rt(90)
pen.circle(len,180)
pen.fd(2*len)
pen.hideturtle()
turtle.done()
\ No newline at end of file
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