各位大神:
1.py:
class A:
def c(self,y):
xxx
d()
def d(self,z,y):
xxx
2.py:
from 1 import A
class B:
xxx
def e(self):
xxx
A.c(self)
报错:'B' object has no attribute 'd'
怎么解决?
各位大神:
1.py:
class A:
def c(self,y):
xxx
d()
def d(self,z,y):
xxx
2.py:
from 1 import A
class B:
xxx
def e(self):
xxx
A.c(self)
报错:'B' object has no attribute 'd'
怎么解决?