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

Резултати

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

Пребарај: #custom

当前筛选 #custom清除筛选

On traditions The oldest traditional clothing in the Alpine region is the so called 'Bregenzerwälder Juppe'. It is worn by women of the region of Vorarlberg, a county of Austria. It goes back to the 15th century and has not changed ever since. Unmarried girls wear a 'Schappale', an artful head garment, handmade by only a couple of artisans. The headwear and dress often are worn lifelong on special occasions and then given to the next generation. #tradition#custom @EuropeanTribalism

Borkena

@borkena · Post #6215 · 25.04.2026 г., 00:49

EU and Germany Launch Tax and Customs Project to Boost Private Sector Growth in Ethiopia. (Press Release) https://borkena.com/2026/04/24/eu-and-germany-launch-tax-and-customs-project-to-boost-private-sector-growth-in-ethiopia/#Germany#EU#Ethiopia#Tax#Custom@GerEmbAddis