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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #309 · 2 фев.

Метод строки split() разделяет строку на несколько строк по указанному символу >>> "a_b_c".split('_') ['a', 'b', 'c'] Можно указать максимальное количество разделений >>> "a_b_c".split('_', 1) ['a', 'b_c'] Или резать с другой стороны с помощью rsplit() (right split) >>> "a_b_c".rsplit('_', 1) ['a_b', 'c'] А что будет если оставить аргументы пустыми? >>> "a_b_c".split() ['a_b_c'] Получаем список с одним элементом, потому что по умолчанию используется пробельный символ. >>> "a b c".split() ['a', 'b', 'c'] То есть это равнозначно такому вызову? >>> "a b c".split(" ") ['a', 'b', 'c'] Кажется да, но нет! Давайте попробуем добавить пробелов между буквами >>> "a b c".split(" ") ['a', '', '', 'b', '', '', 'c'] И вот картина уже не так предсказуема 😕 А вот что будет по умолчанию >>> "a b c".split() ['a', 'b', 'c'] Всё снова красиво! 🤩 По умолчанию в качестве разделителя используется любой пробельный символ, будь то табуляция или новая строка. Включая несколько таких символов идущих подряд. А также игнорируются пробельные символы по краям строки. >>> "a\t b\n c ".split() ['a', 'b', 'c'] Аналогичный способ можно собрать с помощью регулярного выражения. Но пробелы по краям строки придется обрабатывать дополнительно. >>> import re >>> re.split(r"\s+", ' a b c '.strip()) ['a', 'b', 'c'] Здесь тоже можно указать количество разделений >>> re.split(r"\s+", 'a b c', 1) ['a', 'b c'] А что если мы хотим написать красиво, то есть split() без аргументов, но при этом указать количество разделений? В этом случае первым аргументом передаём None >>> "a\n b c".split(None, 1) ['a', 'b c'] Данный метод не учитывает строки с пробелами, взятые в кавычки 'a "b c" '.split() ['a', '"b', 'c"'] Но для таких случаев есть другие способы. #tricks#basic

Резултати

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

Пребарај: #slp

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

@CoinSonar · Post #244031 · 18.04.2026 г., 07:23

#SLP | Volume spike (USDT PAIR) 74 times the average volume 129.48K USDT traded in 15 min └Buying vol: 70.05K USDT 🟢 Boost score: 3/10 24h Vol: 167.11K USDT (Binance) Price: 0.000702 (-2.7% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28571 · 22.03.2025 г., 12:42

#SLP/USDT analysis : #SLP is currently in a downtrend, forming lower lows (LLs) and lower highs (LHs) structure. The price is currently testing the resistance zone and the 200 EMA. A decline from this level is expected, with a potential test of the swing low level. TF : 2h Entry : $0.001740 Target : $0.001530 SL : $0.001847

Hashtags

Pro Analysis

@proanalysistrader · Post #28513 · 03.03.2025 г., 14:36

#SLP/USDT analysis : The #SLP is currently experiencing a downtrend, trading below its 200 Exponential Moving Average (EMA). The price has broken and retested the support zone, indicating a potential resumption of bearish momentum. The next target for the price will be the swing low level. TF : 4h Entry : $0.002105 Target : $0.001800 SL : $0.002290

Hashtags

Pro Analysis

@proanalysistrader · Post #28401 · 19.01.2025 г., 11:46

#SLP/USDT analysis : #SLP is currently in a bearish trend, marked by a consistent formation of lower lows (LLs) and lower highs (LHs), while respecting the established trendline. The price is expected to maintain this trajectory, with further tests of lower levels anticipated in the near future. TF : 1D Entry : $0.003233 Target : $0.002530 SL : $0.003727

Hashtags

Pro Analysis

@proanalysistrader · Post #27981 · 02.10.2024 г., 07:04

#SLP/USDT analysis : #SLP is currently moving within a bullish channel that is sloping upwards. The price has recently tested the support levels. It is likely to rebound from this point and target the previous swing high. TF : 1D Entry : $0.00246 Target : $0.00284 SL : $0.00226

Hashtags

Pro Analysis

@proanalysistrader · Post #27970 · 28.09.2024 г., 14:39

#SLP/USDT analysis : #SLP is currently finding support over the support zone and the 200-period exponential moving average (200 EMA). The price is expected to sustain its bullish momentum from this current zone and challenge the previous swing high. TF : 30min Entry : $0.00281 Target : $0.00287 SL : $0.00276

Hashtags

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