From 06da619342fa1d732d7d49b5bc50662a8e7498c1 Mon Sep 17 00:00:00 2001 From: SKYFIR35 Date: Wed, 7 Oct 2026 22:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E7=B1=BBcircle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 陈张本-26020007010-912523257.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/陈张本-26020007010-912523257.py b/陈张本-26020007010-912523257.py index aa3fc2c..4d137a2 100644 --- a/陈张本-26020007010-912523257.py +++ b/陈张本-26020007010-912523257.py @@ -3,4 +3,7 @@ class Shape: return 0 class Circle(Shape): def __init__(self, radius): - self.radius = radius \ No newline at end of file + self.radius = radius + + def area(self): + return math.pi * self.radius * self.radius \ No newline at end of file