Commit 799e947e by BellCodeEditor

save project

parent 0440558c
Showing with 3 additions and 1 deletions
...@@ -3,7 +3,9 @@ import random ...@@ -3,7 +3,9 @@ import random
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen()#设置背景 screen=turtle.Screen()#设置背景
screen.bgcolor('lightblue')#浅蓝 screen.bgcolor('lightblue')#浅蓝
len=random.randint(60,150)#爱心大小 #len=random.randint(60,150)#爱心大小
len=screen.textinput('奥里给','要多大')#询问大小
len=int(len)
print(len) print(len)
pen.pensize(15)#画爱心 pen.pensize(15)#画爱心
pen.pencolor("green")#画笔颜色 pen.pencolor("green")#画笔颜色
......
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