From 03beb56500687ec6cc8e7e02cde107c07e3820f2 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 3 Aug 2023 16:02:54 +0800 Subject: [PATCH] save project --- diy1.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/diy1.py b/diy1.py index f864b74..a1f9b4c 100644 --- a/diy1.py +++ b/diy1.py @@ -2,6 +2,7 @@ import turtle pen=turtle.Pen() screen=turtle.Screen() screen.bgcolor("red") +a=screen.textinput("提示","你要多大的爱心?") pen.penup() pen.goto(100,-120) @@ -9,8 +10,8 @@ pen.write("阿巴\n阿巴\n阿巴\n阿巴\n阿巴\n阿巴\n阿巴\n阿巴",font= pen.hideturtle() pen1=turtle.Pen() pen1.hideturtle() -a=30 -pen1.pensize(10) +a=int(a) +pen1.pensize(1) pen1.pencolor("green") pen1.left(45) pen1.forward(a*2) -- libgit2 0.25.0