Commit 2fd49cc1 by BellCodeEditor

save project

parent d82e8cb5
Showing with 5 additions and 4 deletions
#随机数库
import turtle import turtle
pen1 = turtle.Pen() pen1 = turtle.Pen()
pen1.penup() pen1.penup()
...@@ -17,9 +16,11 @@ pen.color("red") ...@@ -17,9 +16,11 @@ pen.color("red")
# 设置画笔粗细 # 设置画笔粗细
pen.pensize(10) pen.pensize(10)
# 画爱心 # 画爱心
#设圆的半径为len #输入爱心大小控制爱心的大小
#随机数法 #len = 圆的半径
#len = int(input("输入圆的半径:")) len = int(screen.textinput("提示""请输入爱心的大小:"))
# a =screen.textinput("提示","请输入爱心的大小:")
#len = int(a)
pen.left(45) pen.left(45)
# 正方形边长为圆的直径:2*len # 正方形边长为圆的直径:2*len
# fd = forword # fd = forword
......
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