ニュース

利用例 Pythonプログラムからのモジュール実行の具体的なサンプルを2つご紹介します。 smartモジュールを利用したディスクのチェック smartモジュールにより全minionのディスクの状態をチェックし、 問題があれば表示を行うというサンプルです。
今回は、モジュールの使い方に慣れるために、datetimeモジュールを使っていくつか試してみることになるようです。 Python標準モジュール、datetime ...
記事の内容 1.5分 第3回 ではfuncコマンドから、 第4回 ではPythonプログラムから既存のFuncモジュールを呼び出す方法について解説しました。今回はFuncモジュールそのものを作成する方法について解説します。 モジュールのパスレイアウト モジュールファイルは、 /usr/ lib/ python2. 4/ site-packagesなど ...
PythonとRustを使ってPythonの拡張モジュールを書く Hideo Hattori(以下、Hattori):ありがとうございます。このようなお話させていただく機会をいただきまして、ありがとうございます。今日は「RustとPython」ということでお話をさせていただきます、Hattori Hideoと申します。よろしくお願いします ...
A superset of Python that compiles to C, Cython combines the ease of Python with the speed of native code. Here's a quick guide to making the most of Cython in your Python programs.
Py03 lets you combine Rust's speed and memory safety with Python's ease of use. Here's how to write Rust extensions for Python that work just like regular Python modules.
If the script is imported, __name__ is set to the name of the module. Example of Python's __name__ variable in action The following two Python files demonstrate how the __name__ variable differs when ...
For example, if we want to open Word documents in Python, we could just Google: “How to open Word documents.” What we’ll quickly find, is that there is a module available for that, called docx.