MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / area

Method area

Day01-15/Day09/shape.py:54–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return 2 * (self._width + self._height)
53
54 def area(self):
55 return self._width * self._height
56
57 def __str__(self):
58 return '我是一个矩形'

Callers 1

shape.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected