Python defines two types of packages, regular packages and namespace packages. Regular packages are traditional packages as they existed in Python 3.2 and earlier. A regular package is typically implemented as a directory containing an __init__.py
file. When a regular package is imported, this __init__.py
file is implicitly executed, and the objects it defines are bound to names in the package’s namespace. The __init__.py
file can contain the same Python code that any other module can contain, and Python will add some additional attributes to the module when it is imported.
البحث
Chart
الأقسام
- Arts
- Business
- Computers
- الألعاب
- Health
- الرئيسية
- Kids and Teens
- مال
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
إقرأ المزيد
Мадам Клод. Madame Claude. (2021)
Париж, 1960-е. Мадам Клод возглавляет процветающий бизнес, связанный с проституцией, который дает...
International environmental issues
Key points
Certain global environmental issues, such as global warming and...
Art and Entertainment Industry
“I'm not here for your amusement. You're here for mine.”Johnny RottenArt analyzes...
Encoding and Decoding Base64 Strings in Python
The Base64 encoding is used to convert bytes that have binary or text data into ASCII characters....
E-book (device)
E-book (device)
Electric book (reader, coll. "e-reader"; An e-book...