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

Резултати

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

Пребарај: #rootdata

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

@CryptoM · Post #65124 · 11.04.2026 г., 06:15

🚀 Immutable X to Unlock 9.62 Million Tokens on April 18 Immutable X (IMX) is set to unlock approximately 9.62 million tokens on April 18 at 8 a.m. UTC+8. According to ChainCatcher, this information comes from Web3 asset data platform RootData's token unlocking data. #ImmutableX#IMX#TokenUnlock#Web3#Crypto#Blockchain#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #65381 · 13.04.2026 г., 03:24

🚀 Kaito Token Unlock Scheduled for April 20 Kaito is set to unlock approximately 12.11 million tokens on April 20 at 12:00 PM UTC+8. According to ChainCatcher, this token release is part of the Web3 asset data platform RootData's schedule. The unlocked tokens are valued at around $4.86 million. #Kaito#TokenUnlock#Web3#RootData#Crypto#Blockchain#TokenRelease#April20#KAITO

Crypto M - Crypto News

@CryptoM · Post #64494 · 09.04.2026 г., 03:15

🚀 VANA Token Unlock Scheduled for April 16 VANA is set to unlock approximately 2.57 million tokens on April 16 at 19:00 UTC+8. According to ChainCatcher, this token release is valued at around $3.36 million, based on data from the Web3 asset data platform RootData. #VANA#Token#Unlock#April16#Crypto#Blockchain#Web3#RootData#ChainCatcher

Crypto M - Crypto News

@CryptoM · Post #64835 · 10.04.2026 г., 03:16

🚀 Infrared to Unlock 27.64 Million Tokens on April 17 Infrared (IR) is set to unlock approximately 27.64 million tokens on April 17 at 0:00 UTC+8. According to ChainCatcher, this information comes from the Web3 asset data platform RootData's token unlocking data. The unlocked tokens are valued at around $1.01 million. #Infrared#tokenunlocking#Web3#ChainCatcher#RootData#cryptocurrency#April17#digitalassets

Crypto M - Crypto News

@CryptoM · Post #65234 · 12.04.2026 г., 07:05

🚀 Sign Partner Sarah to Attend Hong Kong Forum on Crypto and Smart Economy Sign partner Sarah is set to participate in the 'Crypto 2026: From Cryptocurrency to Smart Economy' forum in Hong Kong on April 19. According to ChainCatcher, she will join a roundtable discussion at this event, which is organized by ChainCatcher in collaboration with RootData and is part of the Hong Kong Web3 Carnival. Sign is developing a global distribution platform for premium services and assets. Its first product, EthSign, enables users to sign legally binding agreements using public keys, creating verifiable contract consent records on the blockchain. The second product, TokenTable, assists Web3 projects in efficiently executing, tracking, and managing token distribution processes. The forum will focus on the paradigm shift resulting from the deep integration of AI technology and crypto networks, with in-depth discussions on AI Agent economy, smart payments, RWA, and crypto infrastructure. Positioned at the intersection of technological transition and economic restructuring, this forum aims to provide insights into the current state of the industry and offer forward-thinking perspectives on the future of smart economic systems. #Crypto2026#SmartEconomy#Web3#AI#Blockchain#Cryptocurrency#SmartPayments#TokenDistribution#EthSign#TokenTable#CryptoInfrastructure#HongKongForum#AIAgentEconomy#RWA#TechnologicalTransition#EconomicRestructuring#ChainCatcher#RootData#Web3Carnival

Crypto M - Crypto News

@CryptoM · Post #65295 · 12.04.2026 г., 15:15

🚀 Crypto Analyst Manya Releases Research Tool Rankings Crypto analyst manya has released a ranking of personal research tools. According to ChainCatcher, the rankings categorize tools into different levels based on their effectiveness. The S-tier includes Dune and frontrun.pro, while the A-tier features Coinglass, RootData, Drop, MetaSleuth, and DefiLlama. B-tier tools comprise Arkham, Bubblemaps, Dexscreener, Surf, Nansen, and CoinMarketCap. C-tier tools include Cryptorank and others. #CryptoAnalyst#ResearchTools#CryptoRanking#Dune#frontrunpro#Coinglass#RootData#Drop#MetaSleuth#DefiLlama#Arkham#Bubblemaps#Dexscreener#Surf#Nansen#CoinMarketCap#Cryptorank