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

Пребарај: #sip

当前筛选 #sip清除筛选
Libreware

@libreware · Post #1286 · 05.06.2024 г., 11:16

Cheogram [https://cheogram.com] Cheogram is a set of services that connect all open communication networks together, allowing you to reach all your contacts from a single app. The Cheogram Android app allows you to join a worldwide communication network. It especially focuses on features useful to users who want to contact those on other networks as well, such as SMS-enabled phone numbers. Based on the app Conversations, but with unique features: * Messages with both media and text, including animated media * Unobtrusive display of subject lines, where present * Links to known contacts are shown with their name * Show timestamps for calls * Integrates with gateways' add contact flows * When using a gateway to the phone network, integrate with the native Android Phone app * Address book integration * Tag contacts and channels and browse by tag * Command UI 📡@dcntr #email#sip#xmpp