各位大神:
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'
怎么解决?
不知道你这个问题是否已经解决, 如果还没有解决的话: