blob: 075664527c2b85f58a05f3ac59769b3621d381d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from __future__ import print_function
@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.")
|