How can I prevent importing unnecessary modules from my own submodule using __all__ in Python?

前端 未结 0 830
刺人心
刺人心 2021-01-21 11:53

So here\'s the case, I want to import a module, say a.py. However I don\'t want other modules which is imported by a.py in it. my a.py looks like this:



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