2017-12-02 23:02:37 +01:00
|
|
|
******
|
|
|
|
Syntax
|
|
|
|
******
|
|
|
|
|
|
|
|
Imports
|
|
|
|
=======
|
|
|
|
|
|
|
|
.. code:: python3
|
|
|
|
|
|
|
|
import module
|
|
|
|
|
|
|
|
module.py → module/__init__.py
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
* __init__.py
|
|
|
|
|
|
|
|
first/module.py → second/module.py
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
* first
|
2024-03-08 23:59:39 +01:00
|
|
|
|
|
|
|
Modules
|
|
|
|
=======
|
|
|
|
|
|
|
|
.. code-block:: python3
|
|
|
|
|
|
|
|
'name' in sys.stdlib_module_names
|