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

Резултати

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

Пребарај: #bat

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

@proanalysistrader · Post #28436 · 30.01.2025 г., 16:10

#BAT/USDT analysis : #BAT is in an uptrend, consistently making new highs while trading above the 200 EMA. Currently, the price is above the support zone and is expected to bounce back from this level, resuming its bullish momentum to test previous highs. TF : 1D Entry : $0.2250 Target : $0.2943 SL : $0.2027

Hashtags

Pro Analysis

@proanalysistrader · Post #27847 · 17.08.2024 г., 05:11

#BAT/USDT analysis : #BAT is presently consolidating within a channel. The overall trend on the larger timeframes indicates a bearish outlook, suggesting a potential breakout from the channel to continue moving downwards towards lower price levels. It is advisable to wait for a breakout of the channel and a decline below the $0.1564 level for a short position entry. TF : 2H Entry : $0.1564 Target : $0.1313 SL : $0.1640

Hashtags

Pro Analysis

@proanalysistrader · Post #27722 · 02.07.2024 г., 16:15

#BAT/USDT analysis - #BAT is currently in downtrend, trading below the 200 EMA. The price is in a pullback phase and is projected to test the resistance zone close to the 200 EMA before potentially dropping further to revisit the previous lows. It is recommended to await the price to test the zone before considering a short entry. TF : 4h Entry : $0.1970 Target : $0.1728 SL : $0.2067

Hashtags

American Crypto©

@americancryptotrading · Post #27581 · 07.04.2026 г., 10:34

🇺🇸#BAT/USDT is testing the lowerboundary of the fallingwedge on the weekly timeframe🧐 A great moment to accumulate🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27365 · 04.09.2025 г., 09:49

🇺🇸#BAT/USDT is trending at the s/rzone on the 2D chart👨‍💻 More upside is coming after a bounce🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27173 · 03.03.2025 г., 17:12

🇺🇸#BAT/USDT is testing the supportzone on the weekly chart🔍 Bullish priority if we bounce📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27141 · 03.02.2025 г., 14:58

🇺🇸#BAT/USDT is facing the supportzone on the weekly timeframe💁‍♂️ Pump is expected if we bounce📈 American Crypto©

Hashtags

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