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 слични објави

Пребарај: #assosa

当前筛选 #assosa清除筛选
Addis Standard

@addisstandardeng · Post #21813 · 24.03.2026 г., 06:59

News: #Sudanese officials accuses #Ethiopia of aiding rebel assault on Kurmuk Sudanese authorities have accused Ethiopia of facilitating a renewed offensive by allied rebel forces on the strategic border town of #Kurmuk in #Blue_Nile state, according to a report by Sudan Tribune. A Sudanese government official, cited by the outlet, alleged that Ethiopia “sponsored” the assault by allowing fighters linked to the Rapid Support Forces (#RSF) and the Sudan People’s Liberation Movement-North (#SPLM-N) to operate through its territory. The source claimed combat vehicles moved from #Assosa in Ethiopia toward border areas before launching the attack. Fighting has intensified around Kurmuk, with clashes reported across multiple fronts. The accusations come amid earlier claims reported by Reuters in February that Ethiopia is hosting a training camp for RSF-linked fighters in the #Benishangul-Gumuz region near the Sudan border. Sudanese officials have....... Read more: https://addisstandard.com/?p=56021