Commit 0496c202 by BellCodeEditor

save project

parent ed6beae2
Showing with 5 additions and 2 deletions
#随机数库
import turtle
pen1 = turtle.Pen()
pen1.penup()
......@@ -16,6 +17,9 @@ pen.color("red")
# 设置画笔粗细
pen.pensize(10)
# 画爱心
#设圆的半径为len
#随机数法
#len = int(input("输入圆的半径:"))
pen.left(45)
# 正方形边长为圆的直径:2*len
# fd = forword
......@@ -27,4 +31,4 @@ pen.fd(100)
# 隐藏画笔
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