开发者

Python Import Question

开发者 https://www.devze.com 2023-03-28 03:28 出处:网络
I have a custom package and I am having impo开发者_如何转开发rt problems. The module structure is like this:

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

精彩评论

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