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

Пребарај: #testnetv2

当前筛选 #testnetv2清除筛选
Genius Airdrops™

@geniusairdropsss · Post #594 · 04.02.2025 г., 11:59

The Moment You’ve Been Waiting For! 🎉 Testnet v2 is LIVE! 🚀 🔗app.testnet.liqfinity.com 🏆 You can now visit our platform, test it out, and compete on the main leaderboard! 🤖 We’ve implemented the changes you’ve asked for, stabilized the platform, and introduced anti-bot measures. Our focus is on real users who actively engage with the platform – real users will earn real rewards 💰 📢 For more information and details, head over to our Discord and check out the #testnet channel. discord.gg/CKBhyr4kzr Let the games begin! 🚀 #Liqfinity#TestnetV2#DeFi#Blockchain#cryptomarket#Airdrops#airdrop