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 слични објави

Пребарај: #onchaindetection

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

@CryptoM · Post #64878 · 10.04.2026 г., 06:15

🚀 Huang Licheng Achieves Profitable Trading Streak Huang Licheng, also known as 'Machi Big Brother,' has maintained a successful trading streak without liquidation for 10 days. According to BlockBeats On-chain Detection, he has completed 13 consecutive profitable trades, earning a profit of $1.14 million over the past week. #HuangLicheng#Trading#CryptoTrading#ProfitStreak#Blockchain#OnChainDetection#CryptoInvesting#MachiBigBrother

Crypto M - Crypto News

@CryptoM · Post #64534 · 09.04.2026 г., 06:35

🚀 BTC Short Position Expanded by Strategy Counterparty On April 9, a significant adjustment was made to a BTC short position by the entity known as 'Strategy Counterparty' (0x94d3). According to BlockBeats On-chain Detection, the position was increased by 81.06 BTC, valued at approximately $5.209 million. The total position size has now reached $75.2048 million, with the average price slightly rising from $69,036.20 to $69,181.40. The liquidation price is set at $79,320.81. Currently, the position is experiencing a floating loss of approximately $1.8229 million, marking a decrease of 96.96%. This makes it the largest BTC short position on the Hyperliquid platform. It is noted that this address previously established a substantial short position against mainstream cryptocurrencies during MicroStrategy's significant BTC acquisitions last December. At that time, the position size peaked at $120 million, making it the largest BTC short on the Hyperliquid platform. #BTC#ShortPosition#StrategyCounterparty#Blockchain#OnChainDetection#Crypto#Hyperliquid#FloatingLoss#BTCShort#MarketAdjustment#Cryptocurrency

Crypto M - Crypto News

@CryptoM · Post #65228 · 12.04.2026 г., 06:13

🚀 Whales Accumulate TRUMP Tokens Ahead of Trump Luncheon On April 12, two significant cryptocurrency holders have been accumulating TRUMP tokens in anticipation of a luncheon with U.S. President Donald Trump. According to BlockBeats On-chain Detection, Whale 8DHkza has withdrawn 850,488 TRUMP tokens from a centralized exchange over the past two days. Meanwhile, Whale 7EtuAt extracted 105,754 TRUMP tokens from another centralized exchange 17 hours ago, bringing their total holdings to 1.13 million TRUMP tokens. #Whales#TRUMPTokens#DonaldTrump#Cryptocurrency#Blockchain#CryptoWhales#Luncheon#OnChainDetection#CentralizedExchange