Pythonの強力さの源泉は、日付操作のdatetimeや乱数のrandomといった、豊富なライブラリ(モジュール)にあります。これらの機能を使うためには、import文を使って、自分のスクリプトにその機能を読み込む必要があります。 importの方法にはいくつかのパターン ...
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では1つのプログラムが1つのモジュールに相当します。 作成したモジュールに関しては、import を使って他のモジュールから再利用することが ...