Commit e35f6f7b by BellCodeEditor

save project

parent 92555a73
Showing with 5 additions and 4 deletions
...@@ -11,19 +11,20 @@ pen_a.pensize(1) ...@@ -11,19 +11,20 @@ pen_a.pensize(1)
pen_a.penup() pen_a.penup()
pen_a.goto(100,-100) pen_a.goto(100,-100)
#写字 #写字
pen_a.write("好\n\n点",font=("Times",30,"normal")) word=screen.textinput("字","写啥?")
pen_a.write(word,font=("Times",30,"normal"))
#隐藏画笔 #隐藏画笔
pen_a.hideturtle() pen_a.hideturtle()
#准备画笔 #准备画笔
color=screen.textinput("颜色","啥色?")
pen_b=turtle.Pen() pen_b=turtle.Pen()
pen_b.color("red") pen_b.color(color)
pen_b.speed(99) pen_b.speed(99)
pen_b.pensize(1) pen_b.pensize(1)
#画圆 #画圆
len=screen.textinput("爱心大小","爱心多大?") len=screen.textinput("爱心大小","爱心多大?")
len=int(len) len=int(len)
pen_b.fillcolor("red") pen_b.fillcolor(color)
pen_b.begin_fill() pen_b.begin_fill()
pen_b.left(45) pen_b.left(45)
pen_b.forward(2*len) pen_b.forward(2*len)
......
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