blob: 0e624a1d2bc5e5f027961771b7617563b46ecf55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
@cython.cclass
class Shrubbery:
width: cython.int
height: cython.int
def __init__(self, w, h):
self.width = w
self.height = h
def describe(self):
print("This shrubbery is", self.width,
"by", self.height, "cubits.")
|