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

Резултати

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

Пребарај: #doublezero

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

@CryptoM · Post #65441 · 13.04.2026 г., 08:34

🚀 Japanese Game Company WIZE Expands Solana Holdings Japanese game company WIZE, formerly known as Mobcast Holdings, has announced that its cumulative purchase of SOL has reached approximately $3.13 million (500 million yen) as of April 10, 2026. According to Foresight News, the company currently holds over 24,597 SOL, with an average purchase price of around $127 (20,327 yen) per SOL, ranking 15th globally on CoinGecko's 'Solana Treasury Holdings' list. Over the past six months, WIZE has earned more than 400 SOL in staking rewards. The company's 'WIZE Validator Node' has officially joined the Solana Foundation's SFDP program and has received delegations from projects like DoubleZero. Including external delegations, WIZE's total treasury amounts to approximately 152,000 SOL. The company aims to further increase its holdings to enter the top 10 globally as soon as possible. #JapaneseGameCompany#WIZE#Solana#SOL#ForesightNews#SolanaTreasuryHoldings#StakingRewards#WIZEValidatorNode#SFDP#DoubleZero#Crypto#Blockchain#Cryptocurrency#GameIndustry

Venture Village Wall 🦄

@venturevillagewall · Post #4317 · 06.03.2025 г., 01:00

Notable Updates on Crypto Events and Funding White House source confirms Cardano's Charles Hoskinson excluded from the March 8 Crypto Summit. Cardano hasn't engaged with the administration in policy talks. Additionally, DoubleZero Foundation raises $28M at $400M valuation, plans expansion. CANARY files S-1 for AXL ETF, focusing on blockchain interoperability. #Cardano#Crypto#Hoskinson#DoubleZero#Blockchain#Funding#AXLETF#Web3#Investing#Valuation#Solana#XRP#Hedera#Stellar#TON#Sui#Bitcoin#VC#Testnet

Venture Village Wall 🦄

@venturevillagewall · Post #4324 · 06.03.2025 г., 19:00

$28M Raised for DoubleZero as Blockchain News DoubleZero secures $28M in funding from Multicoin Capital and others to enhance its network protocol. Tensorplex Labs also gains investment from YZi Labs to develop decentralized AI tools. Texas Senate passes Bitcoin Reserve Bill SB21. TON Core implements "Accelerator" update, boosting throughput to 100,000 TPS. World Liberty Financial partners with Sui, causing SUI price surge. Medusa Ransomware targets over 40 victims in 2025, demanding hefty ransoms. Kraken to begin next round of FTX creditor repayments on May 30. Seismic raises $7M led by a16z for a privacy blockchain. More on Bitcoin, blockchain, and crypto developments can be found at the relevant links. #Funding#Blockchain#Bitcoin#TexasSenate#Crypto#AI#Tensorplex#Web3#DoubleZero#SUI#Seismic#Ransomware#Medusa#A16z#DeFi#DecentralizedAI#TON#Kraken#VentureCapital