Commit 9d7f4a63 by BellCodeEditor

save project

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