From 24392c90225e308a1b36cb7a3c318b432941e7b9 Mon Sep 17 00:00:00 2001 From: 261067224 <261067224@qq.com> Date: Wed, 7 Oct 2026 21:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B1=BBCircle=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 陈安-26020007005-261067224.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/陈安-26020007005-261067224.py b/陈安-26020007005-261067224.py index d80bdbc..9400ab9 100644 --- a/陈安-26020007005-261067224.py +++ b/陈安-26020007005-261067224.py @@ -1,3 +1,9 @@ class Shape: def area(self): - return 0 \ No newline at end of file + return 0 + +class Circle(area): + def __init__(self, r): + self.r = r + def area(self): + return 3.14 * self.r * self.r \ No newline at end of file