Функция 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
#SIGN/USDT 🔥🔥
Leverage: Cross (10.00X)
Buy Zone: 0.0410–0.0450
TP1: 0.0505
TP2: 0.0558
TP3: 0.0615
TP4: 0.0690
TP5: 0.0780
SL: below 0.0375
From a fundamental perspective, $SIGN has seen increased market attention due to rising trading volume and liquidity on Binance, with strong recent growth performance over the past 30 days. Additionally, Binance has also launched a CreatorPad campaign for $SIGN recently, aiming to boost community engagement and user participation through reward-based activities, which can increase visibility and short-term trading momentum around the token.
🗣#Sign – Join the Potential Airdrop
Backed by $29M from Binance (Incubation), Sequoia, HashKey, and Circle.
What to do:
✔️ Visit the site
✔️ Go to “Profile” and click “Create Schema”
✔️ Randomly click through all fields
✔️ Mint in low-cost networks (Polygon costs ~0.01$)
🟠 Rewards: Potential airdrop
🟠 Deadline: TBA
🟠 Expenses: 0.01$ – 1$
🟠 Low costs but huge investment ($29M from top-tier funds).
☝️ Start trading on Bybit
Crypto Drop Club 👉 SUBSCRIBE