开发者

Python Import Question

I have a custom package and I am having impo开发者_如何转开发rt problems. The module structure is like this:

- BaseModule
    - Exchange
    - Communications
        - DeviceComm

I am trying to import the Exchange module into the DeviceComm module. How do I do that?


Use Intra-package references:

from .. import Exchange
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜