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 слични објави

Пребарај: #tokenizedassets

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

@CryptoM · Post #64712 · 09.04.2026 г., 15:35

🚀 Enhanced Labs Secures $1 Million in Pre-Seed Funding for DeFi Expansion DeFi solutions provider Enhanced Labs has announced the successful completion of a $1 million pre-seed funding round. According to Odaily, the round was led by Maximum Frequency Ventures, with participation from GSR, Selini, Flowdesk, and a group of angel investors. The newly acquired funds are expected to support product development and operations, as well as expand options-based yield strategies to a broader range of on-chain assets, including tokenized real-world assets. #DeFi#Funding#PreSeed#Crypto#Blockchain#YieldFarming#TokenizedAssets#Startup#Investment#CryptoNews

Crypto M - Crypto News

@CryptoM · Post #64710 · 09.04.2026 г., 15:29

🚀 Securitize Appoints Brett Redfearn as President Amid $3.9 Billion Tokenized Asset Management Securitize has announced the appointment of Brett Redfearn, a former executive at the SEC and JPMorgan, as its new president. According to NS3.AI, Redfearn will also join the company's board of directors. This strategic move comes as Securitize manages $3.9 billion in tokenized assets, based on data from RWA.xyz. Redfearn's extensive experience in financial regulation and asset management is expected to bolster Securitize's leadership team and enhance its operations in the rapidly evolving digital asset sector. #Securitize#BrettRedfearn#TokenizedAssets#DigitalAssets#AssetManagement#FinancialRegulation#Leadership#Blockchain#FinTech

Crypto M - Crypto News

@CryptoM · Post #64749 · 09.04.2026 г., 17:59

🚀 Tokenized RWA Market Expected to Reach $400 Billion by 2030 The distributed tokenized real-world asset (RWA) market is projected to expand significantly, growing from approximately $29 billion today to $400 billion by 2030. According to NS3.AI, a report by Keyrock and Securitize highlights this anticipated growth, noting that RWA perpetual futures volumes have increased 40 times over six months, reaching $67 billion in monthly volume. Additionally, the report indicates that tokenized Treasury bills offered higher returns than DeFi's benchmark stablecoin lending rate on 98% of days in the first quarter of 2026. #TokenizedAssets#RWA#DeFi#Blockchain#FinancialMarkets#TreasuryBills#DigitalFinance#CryptoFinance#InvestmentTrends#FinTech

Crypto M - Crypto News

@CryptoM · Post #65379 · 13.04.2026 г., 03:19

🚀 Bank of Korea Nominee Advocates for CBDCs and Stablecoins in Digital Currency Ecosystem Shin Hyun-song, the nominee for the governor of the Bank of Korea, has emphasized the importance of Central Bank Digital Currencies (CBDCs) and commercial bank deposit tokens in shaping the digital currency ecosystem. According to NS3.AI, Shin expressed support for a stablecoin denominated in the domestic won, highlighting that maintaining trust in the currency is paramount. He also noted that stablecoins could facilitate the exchange of tokenized assets and coexist alongside deposit tokens. #BankofKorea#CBDC#Stablecoins#DigitalCurrency#ShinHyunSong#CentralBankDigitalCurrencies#CommercialBankTokens#TokenizedAssets#StablecoinWon#DigitalCurrencyEcosystem