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

Резултати

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

Пребарај: #equities

当前筛选 #equities清除筛选
Coin Signals

@coin_signals · Post #16527 · 16.04.2025 г., 09:02

📊 After gold becomes overbought on the monthly timeframe, it typically enters a 3–6 month sideways range. That’s when #Equities and #Bitcoin usually begin their massive run 🚀

📈A $17 Billion Building Products Deal: Industrial Market Confidence QXO’s $17 billion acquisition of TopBuild signals a resurgence in strategic M&A activity within the industrial and construction sectors despite high interest rates. 🔗Read Full Analysis 🎯 SPECIAL OFFER: 15% OFF 💸 Coupon Code: salenow15% 🚀 Upgrade to premium signals → https://markets.fxpremiere.com/en/signals?utm_source=telegram 📰 Stay ahead — get breaking financial news & analysis at https://markets.fxpremiere.com/en?utm_source=telegram #Equities#MA#SP500

Crypto M - Crypto News

@CryptoM · Post #65019 · 10.04.2026 г., 14:06

🚀 Fed Rate Cut Expectations Collapse as April Hold Probability Stays at 98.4% Key TakeawaysFederal Reserve expected to hold rates in April (98.4% probability).Only 1.6% chance of a rate hike next meeting.June outlook: 96.8% probability of no change.Markets pricing “higher-for-longer” policy stance despite inflation data.Markets Fully Price in April Rate PauseAccording to the CME FedWatch Tool, markets overwhelmingly expect the Federal Reserve to leave interest rates unchanged in April, with probabilities holding steady at 98.4% even after the latest CPI release.The likelihood of a 25 basis point hike stands at just 1.6%, indicating minimal expectation of further tightening in the near term.June Outlook Also Signals Policy StabilityExpectations for June remain similarly stable:96.8% probability of no rate change1.5% probability of a 25 bps rate cut1.7% probability of a rate hikeThis suggests markets see limited policy movement over the next two meetings, despite ongoing inflation concerns.CPI Data Fails to Shift Rate ExpectationsEven with March CPI showing a sharp increase driven by energy prices, rate expectations remain largely unchanged.This reflects market belief that:Inflation spike is energy-driven and potentially temporaryCore inflation remains relatively containedThe Fed is unlikely to react immediately to short-term volatilityHigher-for-Longer Narrative StrengthensThe data reinforces a “higher-for-longer” interest rate environment:No imminent rate cuts priced inLimited probability of further hikesPolicy expected to remain restrictive but stableMarket ImplicationsFor financial markets:Dollar and yields remain supportedRisk assets (crypto, equities) face macro headwindsLiquidity conditions stay relatively tightThe Fed is now firmly in a wait-and-see mode, with policy decisions likely to depend on:Future inflation trends (especially core CPI)Energy price stabilityBroader economic growth dataUnless inflation broadens beyond energy, markets expect the Fed to hold rates steady through at least mid-2026. #FedRateCut#CMEFedWatchTool#FederalReserve#RatePause#Inflation#CPIData#HigherForLonger#InterestRates#MarketOutlook#EconomicPolicy#Dollar#Yields#LiquidityConditions#Crypto#Equities