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

Резултати

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

Пребарај: #8yearsofdigitalindia

当前筛选 #8yearsofdigitalindia清除筛选
MyGov Newsdesk

@MyGovCoronaNewsdesk · Post #12820 · 01.07.2023 г., 09:08

India's UPI is taking the world by storm! With 1 crore+ transactions per hour, 2 lakh+ per minute, and 3500 per second, India leads the real-time payments revolution. Surpassing the US, UK, Germany, and France combined, India holds 46% of all real-time transactions worldwide. UPI is empowering millions like never before. #8YearsOfDigitalIndia

MyGov Newsdesk

@MyGovCoronaNewsdesk · Post #12819 · 01.07.2023 г., 09:02

Honorable Prime Minister #NarendraModi leadership has transformed #DigitalIndia. With a simple click, everything became possible. From digital identities to widespread connectivity, India is scripting a golden chapter of its digital revolution. Check out the video showcasing this remarkable growth. Visit Now: https://youtu.be/7y2qLEZlOcQ #8YearsOfDigitalIndia