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

TGINSIGHT SIMILAR POSTS

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

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

Первая директория в sys.path 🔸 Когда вы запускаете Python-интерпретатор в интерактивном режиме, в системные пути (sys.path) в самое начало добавляется текущая рабочая директория >>> for path in sys.path: ... print(f'"{path}"') "" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Первая строка пустая, что и означает текущую рабочую директорию. 🔸 Если вы запускаете интерпретатор передавая скрипт как аргумент, то история получается иная. На первом месте будет директория в которой располагается скрипт. А текущая рабочая директория игнорируется. Пишем скрипт с таким содержанием: # script.py import sys for path in sys.path: print(f'"{path}"') Запускаем python3 /home/user/dev/script.py Получаем "/home/user/dev" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... 🔸 Если вы запускаете скрипт по имени модуля то на первом месте будет домашняя директория текущего юзера python3 -m script "/home/user" "/usr/lib/python37.zip" "/usr/lib/python3.7" ... Скрипт должен быть доступен для импорта На что это влияет? На видимость модулей для импорта. Если вы ждёте, что, запустив скрипт по пути, сможете импортировать модули из текущей рабочей директории, то вы ошибаетесь. Придётся добавлять путь os.getcwd() в sys.path самостоятельно или заранее объявлять переменную PYTHONPATH. #basic

Hashtags

Резултати

Пронајдени 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Следна