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

Резултати

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

Пребарај: #onchain

当前筛选 #onchain清除筛选
G-AGENTS AI 🤖 | News

@gametynews · Post #110 · 28.05.2024 г., 12:47

🤩1,000,000 Users in Gamety's Telegram App! 👍 Celebration prize: 250$ Show your love in comments on the Tweet, tag 2 friends and post your BNB wallet. 🔥 This massive milestone is just the beginning, so join the excitement and earn your share of 17.5 Million $GTY 💎 tokens with our gamified Airdrop campaign! ➡️ Go to @GametyApp_Bot now! Next Step…bring our user #onchain👍 Stay tuned for more big news! Tweet 🔗: https://x.com/gametyio/status/1795435819529802165 📎Important Links: Website | X | Chat | Discord | Announcement | Youtube

Hashtags

Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #461 · 08.10.2024 г., 13:15

⚖️Unlock the advantages of advanced onchain analytics with 10 Bonus Free Days exclusively for Multichain Score holders! Partnering up with ArbitrageScanner, an ecosystem of #onchain analysis and #cryptocurrency arbitrage products, to deliver more meaningful degen experience for the folks with solid onchain reputation 💪 P.s. ArbitrageScanner is already powering the Nomis Leaderboard—check it out to see how it works! 👇Click the button below to check the offer details and claim your Free Days on available subscriptions! 💠Nomis tApp | X | Discord | YouTube | Check Scores⚖️

Nomis | Onchain Reputation Protocol

@nomis_protocol · Post #514 · 01.11.2024 г., 16:56

🚨MVB 8 Celebration Campaign IS NOW LIVE! For sure, the smartest move to leverage your brand-new BNB Rep Score which has just launched on BNB Chain by #Binance⚡️ Proud to become a part of BNB Chain ecosystem and share this milestone with YOU in our new campaign linked to our participation in the Accelerator! 🗓1-WEEK duration: 💵Unlimited reward pool starting at $5K 🌱10+ BNB Chain Eco projects w/ perks ❗️ The Score determines your profit! Explore partner planets, complete tasks, and claim your well-deserved rewards — it's that simple! Your #BNB Score is a power — cause its all about your #onchain reputation on BNB Chain 🌐 Get it, Leverage it, Be Rewarded for holding it 💜 And Stay Tuned for Next Thrilling News 🫵 (We're preparing another cash giveaway 🤑)

SpotOnChain | Announcement

@spotonchain · Post #1062 · 31.12.2024 г., 15:34

🎉 Hello, 2025, from SpotOnChain! Thank you for an incredible 2024. Big things are coming this year, including the launch of our AI-powered trading agent and the highly anticipated $SOCAI token. 🚀 Here’s to redefining your crypto journey together in 2025! 🥂 #OnChain#SpotOnChain#SOCAI

Tesla Calls Official

@teslacallsofficial · Post #9808 · 20.02.2026 г., 14:51

$ONSING ~ the protective big brother of $PUNCH 🛡️🔥 Solid structure. Higher highs. Clean continuation. Early participants secured partials and continue to ride the trend. This token builds sustainably, not just pumps. 3AZAjwZZCe8Jf4yccheZ5Z1c2SPEPyoYJHFT3Le2pump Big brother energy. #Memecoins#Solana#Crypto#OnChain#Teslacalls🚀

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

@ethereumglobalnews · Post #1313 · 07.11.2025 г., 04:58

🤣EthGlobalNews | Chain Insights 📊Glassnode Market gauged through the Realized Profit-to-Loss Ratio. 目前 90 日移動均值為 9.4,較 7 月高點明顯下降,但仍然是前兩次中期回調階段的 兩倍以上。這意味著,儘管短期投機活躍度降低,但長期資金並未完全撤出市場。 從歷史上看,該指標在回落至 5 以下時通常對應週期性底部,而目前的位置仍處於牛市中段的健康區間。 #BTC#Onchain#Markets#Insight ——— 👍@Web3NewsInsight 🥲 🥲Follow for more Web3 News 🤣

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

@ethereumglobalnews · Post #1243 · 29.10.2025 г., 07:58

📊👀#BTC Cost-Basis Distribution Insight #CryptoMarkets#OnChain Glassnode 指出: • 支撐區約 $111K • 重供給區約 $117K 📌 這區間成為近期買盤與獲利了結者的戰場。突破任一方向都可能決定下個波段走向。 👍@EthereumGlobalNews 🥲 🥲Follow for more Web3 News 🤣

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

@ethereumglobalnews · Post #1228 · 28.10.2025 г., 01:58

🚀 On-chain Alpha Radar #Insight#OnChain#AI#DeFi 🔍 Alpha Insight: AI+鏈上數據助攻,在重大上市前找出潛力代幣。 📌 核心觀點:鏈上領先市場,數據決定先機。 👍@EthereumGlobalNews 🥲 🥲Follow for more Web3News 🤣

TokenPocket

@tokenpocket_channel · Post #720 · 16.08.2023 г., 10:28

Create/Import your #BASE wallet on #TokenPocketExtension! BuildOnBase ✅In-extension #Base Tokens Cross-chain Swap. ✅Connect with third-party websites in a snap. ✅Smoothly operation and New Interface experience. 👇Add #TokenPocketExtension to your Chrome https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii?hl=en #onchainsummer#OnChain#BASE 【Details】https://twitter.com/TokenPocket_TP/status/1691758198003532191 【Powered By】Crypto Box

SingSing Announcement

@singsingchannel · Post #692 · 11.07.2024 г., 08:59

🎉 Milestone Alert! 🎉 SingSing has officially surpassed 1.2 MILLION on-chain transactions! 🚀 Thank you to our incredible community for making this possible. Here’s to many more milestones ahead! 💪✨ Read more and open treasure at: X Post #SingSing#Blockchain#Milestone#OnChain#CryptoCommunity

123•••910
ПретходнаСтраница 1 од 10Следна