Accessibility of a global variable depends on whether I use relative or an absolute import

前端 未结 0 960
后悔当初
后悔当初 2021-01-14 05:26

In my application, I want to access a global variable from within an imported module.

Consider the following dummy example:

test/
    __init__.py
    m         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题