Функция 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
⚠️
⚠️
⚠️
⚠️
⚠
🔔AMA ANNOUNCEMENT
🗣We are pleased to announce our #Voice AMA with "Ethernity Cloud " || 16th Jan 2025 at ( 13:00PM UTC)
🔠
🔠
🔠
🔠
🔠
🔠
🔠
🔠
⏳ Time : 16th Jan, 2025 at (13:00PM UTC)
🏠 Venue
✉️Crypto Fight
🤵♂️Guest : Iosif Peterfi - CEO
➡️There will be 3 segments. Last approximately for 45 minutes - 1 hours.
🟢Segment 1: Introduction Questions
🟢Segment 2: Twitter Questions
🟢Segment 3: Live Questions
📌Rules to follow AMA:
✅ Join
✉️CryptoFight &
✉️Ethernity-cloud
✅Like & Retweet
✅Twitter Post
✅ Follow
📝CryptoFight &
📝Ethernity-cloud on Twitter
📝 Ask Your Questions ( Here )
⏰ Must Join "Ethernity Cloud" Social Media Links :
✅Website✅Telegram✅Twitter✅Discord🌐Github✅Youtube✅Facebook
⏰ Must JoinCrypto Fight Community :
✉️Telegram
✉️Channel
📝Twitter
🔶Binance Live
*️⃣Linktree
💥If You Want To Promote Your Project Or AMA Proposal
📞DM @Ryan_Fight
Tribute: Voice Actor Shares Success Story
#Tribute#voice
Tribute shares insights from a voice actor who has mastered monetizing talent using the platform. Learn how they turn their passion for voice acting into income.
Source: link
@tonlines
🆕 AI News:Did you know? Scientists recently trained an AI to recognize emotions in human voices even better than some people can! Experts believe this could help build smarter assistants and even help diagnose health issues sooner.
❕ Would you trust an AI to sense your mood?
➖➖➖➖🔻
🧠 BOT: @Chatgpt_OfficialBOT
💎@Chatgpt_OfficialNews
#️⃣#AI#Voice#News
➖➖➖➖🔺