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

Резултати

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

Пребарај: #priceanalysis

当前筛选 #priceanalysis清除筛选
Crypto M - Crypto News

@CryptoM · Post #64911 · 10.04.2026 г., 09:09

🚀 Bitcoin's Rebound: Bear Market Bounce or Start of a Rally? Bitcoin has experienced a 7.5% rebound, rising from approximately $67,000 to over $72,000. According to NS3.AI, Glassnode suggests that this movement still aligns with a bear-market bounce unless Bitcoin can reclaim the $81,600 level. The report identifies the $69,000–$71,500 range as near-term support, with the True Market Mean at $78,000 potentially serving as the ceiling for a relief rally. Despite the recent price increase, spot demand for Bitcoin remains weak. ETF flows are showing only modest improvements, and options traders continue to pay a premium for downside protection, indicating cautious sentiment in the market. #Bitcoin#Crypto#BearMarket#Rally#PriceAnalysis#MarketSentiment#ETF#Trading#BTC

Crypto M - Crypto News

@CryptoM · Post #64756 · 09.04.2026 г., 19:25

🚀 Analyst Suggests Nvidia Needs to Surpass $185 for Breakout BTIG analyst Jonathan Krinsky has indicated that Nvidia must exceed and maintain a price above $185 to confirm a breakout. According to NS3.AI, major financial institutions such as Citi, Bank of America, and JPMorgan have set a consensus target of approximately $273 following Jensen Huang's keynote at GTC 2026. #Nvidia#BTIG#JonathanKrinsky#breakout#priceanalysis#financialinstitutions#Citi#BankofAmerica#JPMorgan#GTC2026

Venture Village Wall 🦄

@venturevillagewall · Post #3710 · 25.12.2024 г., 07:00

Justin Sun Transfers $245M in ETH Justin Sun's team has transferred 70,182 ETH to HTX, valued at approximately $245 million. This includes 42,905 ETH unlocked from Lido Finance and 27,277 ETH from Etherfi. Since November 10, Sun has deposited 179,101 ETH worth about $645 million in total, averaging $3,601 per ETH. Analysts suggest Ethereum could outperform Bitcoin in January 2025, potentially increasing the ETH/BTC ratio above 0.04, which may spur altcoin growth. Historical Bitcoin prices show significant growth leading up to Christmas over the years with predictions continuing for 2025. Spot On Chain | Cointelegraph | Simply Bitcoin TV #Ethereum#BTC#JustinSun#HTX#LidoFinance#Etherfi#Crypto#PriceAnalysis#MarketTrends#Altcoins#ETHBTC#Deposits#Blockchain#Trading#Fundamentals#Investing#CryptoHistory#FuturePredictions#ETFs#Growth