我有:
Class A:
def __init__(self, y):
blah, blah, blah
def af(self, h):
print "this"
我像这样骑过defs:
def my_init(self,h):
gangsta wangsta
def aff(self,h):
print "that"
A.af = aff # works
A.__init__ = my_init # doesn't work
它不适用于 init....我该怎么做__init__
?