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