There's a not-so-hidden danger when using Python that you need to be prepared to deal with. All modern software development languages are modular, which means developers can break larger sections of ...
Pythonのインポートの仕組みをおさらいしよう なんで遅延インポートが必要なのか、という話の前に、Pythonがモジュール (ライブラリ)をインポートする仕組みについて、簡単におさらいしましょう。 たとえば、コードに次のように書いてあったとしますね。