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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

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

Пребарај: #cryptoprofit

当前筛选 #cryptoprofit清除筛选
Binance Big Pump Signals Future trade

@binancebigpumpsignalsfuture · Post #2686 · 05.05.2025 г., 13:24

MicroStrategy(@Strategy) bought another 1,895 $BTC($180.34M) at an average price of $95,167 last week. #Strategy currently holds 555,450 $BTC($52.35B), with an average buying price of $68,550 and an unrealized profit of $14.28B. #CryptoSignals#FuturesTrading#VIPGroup#BTC#Altcoins#CryptoProfit

Crypto M - Crypto News

@CryptoM · Post #65132 · 11.04.2026 г., 09:34

🚀 Crypto Trader 'Maji' Increases Long Positions Amid Market Fluctuations On April 11, 'Maji' continued to strategically increase long positions, according to BlockBeats. The total value of these positions has risen to $42.17 million, up from approximately $34 million the previous evening. These positions are reported to have a high safety margin, with liquidation prices significantly lower than current market values. As of the latest update, 'Maji' holds detailed positions including a 25x leverage on Ethereum with 12,131.7179 ETH at a liquidation price of $2,090.95, a 40x leverage on Bitcoin with 180 BTC at a liquidation price of $62,529.3, and a 10x leverage on HYPE with 43,750 units. Additionally, 'Maji' has achieved a total contract profit of $1.85 million over the past week, and has turned a monthly loss into a profit of $190,000. #CryptoTrading#Maji#LongPositions#MarketFluctuations#Ethereum#Bitcoin#LeverageTrading#CryptoProfit#HYPE#ContractProfit#BTC#ETH

Crypto Price

@cryptodailyprice · Post #4750 · 24.10.2025 г., 06:28

🔥@CryptoDailyPrice – Your shortcut to daily crypto power! 💰 Get live price updates, learn pro trading tricks, and discover zero-investment earning hacks that actually work. 🚀 Stay tuned — every post drops something crucial, profitable, and mind-opening for crypto lovers like you! ⚡ #CryptoDailyPrice#CryptoUpdates#CryptoEarnings#CryptoTrading#CryptoTips#LearnToTrade#ZeroInvestment#CryptoForBeginners#DailyCryptoNews#PassiveIncome#CryptoSignals#CryptoMarket#CryptoProfit#StayTuned#EarnWithCrypto