Once you know how to add and use a Python module, you will greatly extend the capabilities of the language. A Python module is an external class or set of functions that exist outside the main file of ...
ここでPythonを終了すると、x もhello関数も全部消える。 import fiboは、fibo という箱を持ってくるという意味です。 になります。 ※ 実行ファイルとして動かすときは "main" になります 同じ名前でもぶつからない。これがモジュールの利点 モジュールには「実行 ...