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

Резултати

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

Пребарај: #powr

当前筛选 #powr清除筛选
Pro Analysis

@proanalysistrader · Post #28382 · 11.01.2025 г., 13:30

#POWR/USDT analysis : #POWR has successfully broken above the trendline and is anticipated to continue its upward movement, with the potential to test previous highs. This breakout signals a bullish trend, suggesting further price appreciation in the near term. TF : 1D Entry : $0.3090 Target : $0.4500 SL : $0.2270

Hashtags

Pro Analysis

@proanalysistrader · Post #28307 · 04.12.2024 г., 08:45

#POWR/USDT analysis : #POWR is currently in an uptrend, trading above the 200 EMA. The price has bounced back from the support zone with strong volume. As a result, we can expect the price to maintain its bullish momentum and test higher levels. TF : 2H Entry : $0.3500 Target : $0.4200 SL : $0.3022

Hashtags

Pro Analysis

@proanalysistrader · Post #27824 · 09.08.2024 г., 17:35

#POWR/USDT analysis : #POWR is in a correction phase and has recently tested the resistance zone near the 200 EMA. The price is anticipated to be rejected from there and continue its downward direction. Wait for the break of the $0.1936 level for entry. TF : 4H Entry : $0.1936 Target : $0.1751 SL : $0.2058

Hashtags

Crypto Australia🇭🇲🇭🇲

@CryptoAustralia · Post #15811 · 13.02.2024 г., 14:43

⚡️⚡️#POWR/USDT ⚡️⚡️ Exchanges: Binance Futures Signal Type: Regular (Long) Leverage: Cross (50х) Entry Targets: 0.3596 Take-Profit Targets: 1)0.365 2)0.3686 3)0.3722 4)0.3776 5)0.3812 6)0.3866 7) 🚀🚀🚀 Stop Targets: 5-10% By Crypto Australia

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9037 · 28.07.2024 г., 07:15

#POWR👈 https://www.binance.com/en/trade/POWR_BTC Buy at current 320-335 Highly pumpable Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its pump coin Sell 🤑360-380 🤑380-410 🤑 410-440 🤑 440-470 🚀 470- 500 & above Bullish above -300

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #9016 · 12.05.2024 г., 12:05

#POWR👈 https://www.binance.com/en/trade/POWR_BTC Buy at current 485-495 Highly pumpable Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its pump coin Sell 🤑520-550 🤑 550-600 🤑 600-650 🤑 650-700 🚀 700- 750 & above Bullish above -470

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8850 · 16.09.2023 г., 17:59

#POWR👈 https://www.binance.com/en/trade/POWR_BTC Buy at current 525-540 Highly pumpable Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its pump coin Sell 🤑 570-600 🤑 600-650 🤑 650-700 🚀 700- 750 & above Bullish above -510

Hashtags

Crypto Profit Coach™

@cryptoprofitcoach · Post #8797 · 19.05.2023 г., 16:40

#POWR👈 https://www.binance.com/en/trade/POWR_BTC Buy at current 605-610 Highly pumpable Coin on the brink of 🚀 Buy in parts 👈strictly follow for max profits as its pump coin Sell 🤑 640-670 🤑 670-730 🤑 730-790 🚀 790- 850 & above Stop Loss/Exit -590

Hashtags

12
ПретходнаСтраница 1 од 2Следна