Функция 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
2013 GPU mining = turning $3 of electricity into $600+ per day”
Back in 2013 a simple GPU rig could mine:
0.5–1 BTC per day
0.5 BTC today = ~$18,500
1 BTC today = ~$37,000
Mining was one of the highest ROI opportunities ever seen in the digital age.
People who mined early didn’t just make money —
They secured freedom long before the rest of the world woke up.
#BitcoinMining#BTC#CryptoHODL#MiningHistory
Crypto Mining Highlights for January
Key developments in crypto mining for January include:
- Canaan launches new home mining machines.
- Petrobras plus Russia's largest power grid venture into Bitcoin mining.
- Hashrate Index unveils Top 10 Bitcoin Mining ASIC Machines for 2025.
- Cipher Mining secured a $50M investment from SoftBank.
For more details, visit Wu Blockchain News.
#CryptoMining#Bitcoin#ASIC#Canaan#SoftBank#Petrobras#Hashrate#Investment#MiningMachines#BitcoinMining#Crypto#VC#TechNews#Blockchain#CryptoNews#Finance#Startup
🚀 Bhutan's Bitcoin Mining Activities May Have Slowed Amid Economic Pressures
Bhutan may have halted or reduced its Bitcoin mining operations after selling 70% of its Bitcoin holdings. According to Foresight News, this move contrasts with other major institutions and sovereign nations that are increasing their cryptocurrency and gold reserves. Bhutan's hydropower is reportedly being redirected to supply electricity to neighboring India rather than being used for Bitcoin mining. Economic pressures, along with declining Bitcoin prices, increased network difficulty, and halving pressures, are squeezing mining profitability. As of now, Druk Holding and Investments, the sovereign wealth fund managing Bhutan's Bitcoin assets, has not publicly commented on any asset transfers or the status of its mining operations.
#Bhutan#Bitcoin#Cryptocurrency#BitcoinMining#Hydropower#EconomicPressure#SovereignWealthFund#MiningProfitability#India#DigitalAssets
🚀 AI TRENDS | Bitcoin Mining Centralization and Edge AI Market Growth Projected
Bitcoin mining is anticipated to become increasingly centralized, according to Alex Thorn, head of Galaxy Research. According to NS3.AI, Thorn's insights suggest a shift in the mining landscape, potentially impacting the decentralization that has been a hallmark of the cryptocurrency. Meanwhile, the edge AI market is expected to experience significant growth. Grand View Research forecasts that the market will expand from approximately $25 billion in 2025 to $119 billion by 2033, indicating a trend towards more localized AI applications.
#BitcoinMining#Centralization#EdgeAI#MarketGrowth#Decentralization#AITrends#GalaxyResearch#NS3AI#GrandViewResearch#LocalizedAI#BTC