Lesson - 33 : Python3 - Python Package

preview_player
Показать описание
**************************************************
**************************************************
Python Package:
A package is a hierarchical file directory structure that defines a single Python application environment that consists of modules and subpackages and sub-subpackages, and so on.

A Package is simply a collection of similar modules, sub-packages etc..
Steps to create and import Package:
1) Create a directory, say Info
3) Create a file __init__.py which specifies attributes in each module.
4) Import the package and use the attributes using package.
Ex:
import Info  

Рекомендации по теме