Skip to content

Begriffe

M. Thomas edited this page Oct 20, 2023 · 1 revision
  • A python module is a single file with a .py extension.
  • A python package is a folder that contains at least one python module. For python2, a package requires a init.py file
  • A python package can contain any number of nested sub-packages, i.e. packages that contain other packages down the hierarchy of the project - structure.
  • imports are useful when a module needs to use some piece of functionality (e.g. a function or a class) written in another module (of the same or a different package or sub-package)

Quelle

Clone this wiki locally