How to have “import X” importing all modules of package, but “from X import Y1” only importing/evaluating the module Y1?

前端 未结 0 521
一整个雨季
一整个雨季 2020-12-03 17:10

I have the following package/module structure:

X
|-> __init__.py
|-> y1.py
|-> y2.py

The functionality I want in my project is that

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