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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #345 · 9 окт.

Функция dir() - удобна для получения списка атрибутов у любого объекта. Ранее я писал про функцию __dir__() в модуле (не путайте её с переменной __all__(), которая указывает список объектов для импорта если встречается конструкция from module import *). Скорее всего вы уже знаете как использовать функцию dir(). Любой объект может реализовать метод __dir__() чтобы указать список имеющийхся и динамических атрибутов. И функция dir() поможет получить список этих атрибутов. >>> dir(str) ['__add__', '__class__', '__contains__', ...] У этой функции есть еще один способ применения. Её можно вызвать без аргумента, и в таком случае она вернёт список имён в текущем неймспейсе. >>> dir() ['__builtins__', '__doc__', '__file__', ...] >>> def test(): >>> x = 1 >>> print(dir()) >>> test() ['x'] #basic#tricks

Резултати

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

Пребарај: #yekatit23

当前筛选 #yekatit23清除筛选
Red Nile

@rednile12 · Post #11074 · 27.02.2026 г., 12:30

🎙️WEEK 17 | LIVE DISCUSSION ⚔🛡My Generation & Adwa Reflecting on the 130th Anniversary of the Victory of Adwa In honor of the 130th Anniversary of the Victory of Adwa, celebrated on Yekatit 23, 2018 (E.C.), we invite you to a powerful and timely conversation on legacy, identity, and national consciousness. Tonight, on the Ethiopia First Telegram Channel, we will discuss, reflect, and critically engage on what Adwa means for our generation — and why it still matters today. Be part of this historic dialogue. 📅February 27, 2026 🕗8:00–10:00 PM (EST) | 2:00–4:00 PM (Ethiopia Time) 🎙️Host: Ethiopia First 🗣️Guest: Alexander Yohannes — Red Nile Media 🔗Join Live:https://t.me/+AAE_Pc8aWTczYTA0 — #Adwa130#VictoryOfAdwa#AdwaAnniversary#MyGenerationAndAdwa #EthiopiaFirst#RedNileMedia#EthiopianHistory#AfricanVictory #PanAfricanLegacy#Yekatit23#EthiopianPride#AdwaSpirit#EthiopiaRising