TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #60 · 31 мар.

Вторая по частоте future-функция, которую я использовал, это абсолютный импорт from __future__ import absolute_import Что она делает? Изменения, которые вносит эта инъекция описаны в PEP328 Покажу простой пример. Допустим, есть такой пакет: /my_package /__init__.py /main.py /string.py Смотрим код в my_package/main.py # main.py import string Простой пример готов) Вопрос в том, какой модуль импортируется в данном случае? Есть два варианта: 1. модуль в моём пакете my_package.string 2. стандартный модуль string И вот тут вступает в дело приоритет импортов. В Python2 порядок следующий: помимо иных источников, раньше ищется модуль внутри текущего пакета, а потом в стандартных библиотеках. Таким образом мы импортнём my_package.string. Но в Python3 это поведение изменилось. Если мы указываем просто имя пакета, то ищется именно такой модуль, игнорируя имена в текущем пакете. Если мы хотим импортнуть именно подмодуль из нашего пакета то, мы должны теперь явно это указывать. from my_package import string или относительный импорт, но с указанием пути относительно текущего модуля main from . import string Еще одной неоднозначностью меньше 😎 Подробней про импорты здесь: https://docs.python.org/3/tutorial/modules.html #2to3#pep#basic

Резултати

Пронајдени 4 слични објави

Пребарај: #bitcoinmining

当前筛选 #bitcoinmining清除筛选

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

Venture Village Wall 🦄

@venturevillagewall · Post #4073 · 05.02.2025 г., 13:00

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

Crypto M - Crypto News

@CryptoM · Post #65118 · 11.04.2026 г., 04:35

🚀 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

Crypto M - Crypto News

@CryptoM · Post #65399 · 13.04.2026 г., 05:13

🚀 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