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

Резултати

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

Пребарај: #fio

当前筛选 #fio清除筛选
Coin Sonar

@CoinSonar · Post #243802 · 17.04.2026 г., 18:04

#FIO | Volume spike (USDT PAIR) 77 times the average volume 128.80K USDT traded in 15 min └Buying vol: 70.17K USDT 🟢 Boost score: 3/10 24h Vol: 158.89K USDT (Binance) Price: 0.00245 (-5.1% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28042 · 20.10.2024 г., 05:14

#FIO/USDT analysis : #FIO is in an uptrend, forming higher highs (HHs) and higher lows (HLs) while trading above the 200 EMA. The price has broken out and retested the previous swing high resistance levels. It is expected to bounce back from this point and continue its bullish momentum to test the recent swing high. TF : 1D Entry : $0.0305 Target : $0.0417 SL : $0.0270

Hashtags

Pro Analysis

@proanalysistrader · Post #27942 · 17.09.2024 г., 14:02

#FIO/USDT analysis : #FIO is currently in an uptrend, forming higher highs (HHs) and higher lows (HLs), while finding support above the trendline. The price is anticipated to rebound from the current level to sustain its bullish momentum and test new highs. TF : 4h Entry : $0.0259 Target : $0.0300 SL : $0.0238

Hashtags

Pro Analysis

@proanalysistrader · Post #27854 · 19.08.2024 г., 05:32

#FIO/USDT analysis : #FIO is currently experiencing a decline from the resistance zone following rejections in that region. It is anticipated to maintain its downward momentum and possibly test previous lows. TF : 4H Entry : $0.0198 Target : $0.0162 SL : $0.0210

Hashtags

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