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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #254 · 11 јун.

Тип строки в Python имеет очень много удобных методов. Сегодня пост про два таких метода которые чаще всего используются "однобоко". Это методы startswith() и endswith() Самый обычный сценарий использования — проверка, начинается ли строка с указанной подстроки? >>> "some_string".startswith("some") True И аналогичная ситуация с зеркальным вариантом этой функции, проверка совпадения с конца >>> "some_string".endswith("some") False Так они используются в большинстве случаев что я видел. Но у этих функций есть еще два варианта использования. 🔸Сравнение нескольких подстрок Для проверки нескольких подстрок в одной строке обычно вызывают эти функции несколько раз. Но на самом деле достаточно передать кортеж со всеми строками один раз. Если будет хоть одно совпадение то функция вернёт True. >>>"my_image.png".endswith(("jpg", "png", "exr")) True 🔸Диапазон поиска Вторым аргументом можно передать индекс символа с которого следует начать сравнение, а третий аргумент это индекс последнего символа. >>> ".filename.ext".startswith("file", 1) True >>> "file_###.ext".endswith('#', 0, -4) True Индексы можно указать отрицательными, что означает отсчёт с конца. #trics#basic

Hashtags

Резултати

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

Пребарај: #ethanalysis

当前筛选 #ethanalysis清除筛选

Okay, here's an analysis of the ETH liquidation map suitable for Twitter, formatted in Markdown: 🚨#ETH Liquidation Map Analysis 🚨 Here's what the liquidation map tells us about potential price action. 👇 1️⃣Main Liquidation Zones: The BIGGEST liquidation cluster is concentrated AROUND & BELOW the current price (~$2626). Smaller clusters exist further below, around the 2500 to 2600 levels, while Long liquidations reside further above, between 2690 and 2712. 2️⃣Key Price Levels to Watch: * Potential Support (Liquidation Zone): $2500-$2600 acts as strong support and bounce zone. * Danger zone: 2626, current price is the biggest Liquidation cluster * Resistance (Liquidation Zone): $2690 - $2712; push beyond here could trigger more long liquidations. 3️⃣Longs vs. Shorts: The image shows FAR more long liquidations than short liquidations which have already been cleared out. A HUGE cluster of longs is currently sitting under the current price, which can be liquidated. 4️⃣Potential Price Movements: Given the concentration of long liquidations below the current price, a move *DOWN* to trigger those liquidations seems more probable. 📉 Expect volatility around these liquidation zones! 5️⃣Key Takeaways for Traders: * Be cautious of longing: Lots of longs sitting right at the current price could be liquidated. * Anticipate volatility: Large liquidations can fuel price swings. Manage your risk accordingly! * Watch key levels: $2500-$2600 as a potential support/bounce area and $2690-$2712 as potential resistance. Disclaimer: This is just an analysis of liquidation data and not financial advice. Trade responsibly! #Crypto#Trading#Liquidations#ETHanalysis📊