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

Резултати

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

Пребарај: #bitcoingrowth

当前筛选 #bitcoingrowth清除筛选
Crypto M - Crypto News

@CryptoM · Post #65309 · 12.04.2026 г., 19:56

🚀 Strategy Requires 2.05% Annual Bitcoin Growth to Sustain Dividends, Says Michael Saylor Michael Saylor has stated that Strategy needs an annual Bitcoin growth rate of 2.05% to cover its preferred stock dividends without the need to issue new common shares. According to NS3.AI, Strategy's dashboard indicates that the company holds 766,970 BTC, providing approximately 48.7 years of dividend coverage at the current reserve levels. The current annual yield for STRC stands at 11.5%. #Bitcoin#MichaelSaylor#STRC#Dividends#CryptoInvestment#Cryptocurrency#BitcoinGrowth#PreferredStock#InvestmentStrategy#BTC

Crypto M - Crypto News

@CryptoM · Post #64628 · 09.04.2026 г., 11:57

🚀 Bitcoin Bancorp Expands Bitcoin ATM Network in Southern California Bitcoin Bancorp has announced the launch of a licensed Bitcoin ATM network in Southern California, with the first machines now operational in the Los Angeles area. According to Odaily, this marks a new phase in the company's retail expansion in the United States, following its previous deployment in Texas, highlighting its strategy to accelerate growth in key markets. Data indicates that the United States currently hosts over 35,000 Bitcoin ATMs, with the industry expected to grow from approximately $267 million in 2025 to $7.68 billion by 2034. California, with its large population, advanced tech ecosystem, and high rate of cryptocurrency adoption, is a significant growth market, ranking among the top states in the nation for ATM installations, second only to states like Texas. #BitcoinBancorp#BitcoinATM#SouthernCalifornia#LosAngeles#RetailExpansion#Cryptocurrency#BitcoinMarket#CaliforniaTech#CryptoAdoption#USBitcoinATMs#ATMInstallations#BitcoinGrowth#BTC