TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

Пронајдени 51 слични објави

Пребарај: #anonymous

当前筛选 #anonymous清除筛选
Honkai: Star Rail Italia - Leaks 🇮🇹

@starrailleaks · Post #12368 · 20.04.2026 г., 14:57

SP Blade’s main role is as a support, providing team-wide assistance by deploying a Zone that reduces enemy attributes/stats. This allows him to support a wide variety of DPS characters, including Ashveil. Additionally, he can release a AoE FuA that deals damage scaled based on a percentage of his Max HP. #anonymous

Hashtags

Honkai: Star Rail Italia - Leaks 🇮🇹

@starrailleaks · Post #11962 · 16.03.2026 г., 13:51

Evanescia Skill deals multi-hit damage. On execute (kill) it restores stacks and energy. When teammates trigger Follow-up / Additional / Aha Instant, Evanescia gains stacks. The Ultimate can either consume stacks to deal damage or clear the stacks for damage; executing an enemy gives extra action and energy refund. Her Aha Instant appears in the middle of the action order and can be copied. Sw SP The Ultimate transformation mainly charges through punchlines converted from Aha Instants. For characters on the Elation path, the order of Aha Instants is fixed, and Sw SP’s always goes last. Sw SP’s Aha Instant cannot be copied. In the transformation state, the dragon cannot be controlled. When using single-target attacks, Sw SP attacks first and the dragon follows up. When using AoE gestures/attacks, the dragon also follows up afterward. At the end, snapping fingers triggers one special Aha Instant. In transformation, the punchlines generated by Aha Instants can store energy, but there is a limit. One more thing worth mentioning is that a future character who can copy Ultimates when conditions are met will be a teammate of Sw SP and Evanescia. #anonymous uncle

Hashtags

Honkai: Star Rail Italia - Leaks 🇮🇹

@starrailleaks · Post #11895 · 10.03.2026 г., 08:59

EMC’s mechanic roughly copies the previous teammate’s Elation skill and provides a large number of Punchlines “provides a large number of Punchlines” is wrong! Sparxie is a Punchline-generating machine, it’s written in her design document. EMC doesn’t have the ability to provide a large amount of Punchlines. Among the recently released characters, none generate Punchlines more efficiently than Sparxie. #anonymous uncle

Hashtags

ПретходнаСтраница 1 од 5Следна