From a8e1f7a23c810b250b83284798edd4fdb092803c Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 29 Oct 2022 19:58:46 +0800
Subject: [PATCH] save project

---
 diy1.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/diy1.py b/diy1.py
index 1ab537d..96c11a3 100644
--- a/diy1.py
+++ b/diy1.py
@@ -2,7 +2,7 @@
 import turtle
 screen=turtle.Screen()
 screen.bgcolor("light blue")
-len=screen.textinput("100","100")
+len=int(input("半径:"))
 pen=turtle.Pen()
 pen.write("你好Esc",font=("Times",80,"normal"))
 pen.hideturtle()
@@ -12,10 +12,10 @@ pen.pendown()
 pen.pensize(5)
 pen.pencolor("red")
 pen.left(45)
-pen.forward(100)
-pen.circle(5,180)
+pen.forward(len*2)
+pen.circle(len,180)
 pen.left()(45)
-pen.circle(5,180)
-pen.forward(100)
+pen.circle(len,180)
+pen.forward(len*2)
 pen.hideturtle()
 turtle.done()
\ No newline at end of file
--
libgit2 0.25.0