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

Пребарај: #onchaindata

当前筛选 #onchaindata清除筛选
SpotOnChain | Announcement

@spotonchain · Post #421 · 28.09.2023 г., 13:27

🎉🎉 Celebrate with us the impressive metrics within 🔟 days of Beta Launch🚀📈: - 30K active users from 50 countries - 10.2K smart alert configs are set - 1.5M interactive maps are visualized 🌐🔗 We're honoured to harness #AI and #Onchaindata to empower our users for success! 🎯There is still a chance to share our 🎁$2,000🎁 reward pool and win the Beta Access Code!! 🎮Jump in our Zealy quest board now! We are distributing the code every week to highly engaging members. 🍀👇 https://zealy.io/c/spotonchain/questboard

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1823 · 15.01.2026 г., 07:18

🪙📊Ethereum daily transactions hit a new all-time high. 📈 Sentora 數據顯示,以太坊單日交易數突破 230 萬筆,創下歷史新高,鏈上活躍度持續攀升。 #以太坊#OnchainData#DeFi #Crypto#Adoption#Web3 ——— 結構解讀關鍵👇🥇資源搜索群🖲️👆 📊 從 2018–2026 的長期走勢來看,ETH 交易量呈現結構性上行,即使在熊市階段,鏈上使用仍未回到早期低點。 ⚡️ Insight: • 高交易數代表 實際使用需求,而非純投機 • L2、生態應用與穩定幣活動正在放大主網結算需求 • 長期看,這是 ETH 作為全球結算層 的關鍵基本面信號 👇⭐️👇 🤣 留言分享觀點 🥲👇

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #2082 · 13.04.2026 г., 03:05

🪙🐋 💲🆕巨鯨 出沒:20倍 槓桿 多單 大賺 $1,100 萬! 該玩家持有的 50,000 $ETH 長線多單(20x 槓桿),目前 總價值 已高達 $1.119 億美元。 隨著 以太幣 價格走強,該位址的浮動盈利已正式突破 $1,129 萬美元! #加密货币#以太币#区块链#币圈 ——— 📊市場情緒觀察 📊——— ⚡️曝光新聞👇👇資源搜索群 🖲️👆 📊關鍵數據看點: • 持倉規模: 50,000 ETH • 槓桿倍數: 20x (高風險高回報) • 當前價值: $111.9M • 浮動盈餘: +$11.29M 💡巨鯨選擇在高槓桿下繼續持有,顯示大戶對後市突破仍具備極強信心。 但需注意 20 倍槓桿的清算線風險,若市場出現劇烈回撤,這類大單的平倉動作可能會引發短線波動。 #槓桿交易#財富密碼#OnChainData 🤣👇 ☕️👇 幣圈 区块链新闻 😺👇

🇺🇸📊 以太全球新聞 📆 2025-10-11 EthereumGlobalNews 📈 鏈上數據追蹤 📉👀【#BTC 鏈上數據:巨額虧損比特幣湧入交易所,加劇拋售壓力】 在過去數小時內,約 36,700 顆比特幣(約 41 億美元)於虧損狀態下被轉入交易所。這一波資金移動可能對市場形成拋壓,但真正導致市場全面崩潰的主因,仍是連環清算潮,徹底將行情拖入深淵。 #BTC#鏈上拋壓#清算潮#市場恐慌#OnchainData

Crypto M - Crypto News

@CryptoM · Post #65021 · 10.04.2026 г., 14:11

🚀 Bitcoin's Potential Bear-Market 'Iron Bottom' Predicted by Analyst A CryptoQuant analyst has projected that Bitcoin might establish a bear-market 'iron bottom' within the $55,000–$60,000 range by the end of 2026. According to NS3.AI, this prediction is grounded in on-chain indicators, notably the MVRV Z-score, which has moderated but remains above negative levels. #Bitcoin#Crypto#BearMarket#CryptoAnalysis#MVRV#OnChainData#CryptoPredictions#BTC

Crypto M - Crypto News

@CryptoM · Post #64538 · 09.04.2026 г., 06:45

🚀 Satoshi Protocol Layer2 Settlement Network Launches with Upgrades The Satoshi Protocol Layer2 settlement network officially launched on April 6, introducing enhancements in on-chain data statistics and computational capabilities. According to ChainCatcher, the Layer2 network now supports deep cumulative calculations on-chain, allowing for a more accurate reflection of team sizes and business data, thereby improving processing efficiency in complex scenarios. In terms of governance, the protocol has transferred core permissions to a multi-signature contract and adopted a dual-track governance model, with developers and core community members each holding 50% of the decision-making power. The execution threshold is set at 65%, further enhancing decentralization. This upgrade marks the protocol's transition towards community autonomy, providing a reference for technology and governance in the DeFi sector. #SatoshiProtocol#Layer2#Blockchain#DeFi#Governance#Decentralization#OnChainData#NetworkLaunch#Crypto#MultiSignature#ProtocolUpgrade#CommunityAutonomy