我的文件目录为: Afiles ---- a.py —class Z(): def hello(): Bfiles ---- b.py 代码 想要在b.py中引入a.py中的hello函数 import sys sys.path.append('D:\\project\\pro2\\Afiles') from Afiles.a import Z z = Z() data = z.hello()