Функция 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
🚀 Back to Back profits are made in the Premium Group
🎯🎯#C98/USDT has covered all the target to give a Profit of 22% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
#C98/USDT analysis :
#C98 is currently in a bearish trend, consistently making new lows. The price is expected to test the resistance zone before resuming its bearish momentum.
TF : 1h
Entry : $0.0872
Target : $0.0822
SL : $0.0900
#C98
Coin98 has successfully broken above the descendingchannel formation on the daily timeframe👀
Now, the price is holding above the previous resistance-turned-supportlevel
A bounce from the support zone could push the price toward targets at $0.077, $0.093, and $0.130
#C98 result
1st target achieved in just 15 hours✅
One more quick profit 6%💰🤑
👉 More quick profit signals available in premium channel. Hurry up 🏃♂👇
☎️ Contact @FutureExpertAdmin