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

Резултати

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

Пребарај: #stablecoinwallet

当前筛选 #stablecoinwallet清除筛选
TokenPocket

@tokenpocket_channel · Post #1734 · 24.12.2025 г., 09:28

🔥「0」Gas $U Transfers on BNBCHAIN with TokenPocket! TokenPocket now enables transferring $U with 0 gas fee on the BNB Chain automatically - enjoy smooth, 0-gas transfers, all with a secure, wallet-native experience. Your first choice of #StablecoinWallet 👉http://tp.xyz https://x.com/TokenPocket_TP/status/2003755846489231701?s=20

TokenPocket

@tokenpocket_channel · Post #1732 · 22.12.2025 г., 10:12

🆕$U is now listed on TokenPocket! Manage your $U seamlessly with TokenPocket_TP: store, send, and swap in one powerful multi-chain #StablecoinWallet. Track Easier! Trade Smarter! 👉http://tp.xyz

TokenPocket

@tokenpocket_channel · Post #1731 · 22.12.2025 г., 08:54

🟦 TokenPocket Weekly Report 🟦 🔵 Supported $U on TokenPocket. 🔵 Embrace New Era of #StablecoinWallet 🔵 Notice of Wallet Service Upgrade 🔵 Listed 5 DApps. All-in-one, all in TokenPocket 👉http://tp.xyz

TokenPocket

@tokenpocket_channel · Post #1723 · 03.12.2025 г., 09:18

🚀TokenPocket Now Supports Multi-Chain Gas Payment with Stablecoins! Powered by EIP-7702, TokenPocket now enables transferring gas payments in $USDT, $USDC, and more across multi-chains — including BNBCHAIN, base, and arbitrum — for a smoother, more cost-efficient transfer experience. 🔥 Explore it now in #StablecoinWallet! 🔗Tutorial

TokenPocket

@tokenpocket_channel · Post #1653 · 30.07.2025 г., 08:25

🧊Be Your First #StablecoinWallet! → https://help.tokenpocket.pro/en/wallet-operation/stablecoin/wallet ✅ Self-custody, your keys, your coins! ✅ Multichain supported — one wallet, all chains! ✅ Gas-free stablecoin transfers on BNBChain & Tron (more coming!) 🔐 Powered by TokenPocket — simple, secure, seamless.

TokenPocket

@tokenpocket_channel · Post #1639 · 02.07.2025 г., 02:52

📝 TokenPocket Monthly Report — June 2025 📖 Read the full report: https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-june-2025-8a642e365b94 Main Upgrade ⏬ 🎯#StablecoinWallet 🎯 Market Chart Upgraded 🎯 Gas-Free Transfer on TRON and BNBChain 🎯 Security Enhancement: Now supporting native MultiSig wallets for Bitcoin and Core — giving your assets even stronger protection. ✍️Share your thoughts and suggestions through our survey for a chance to win exclusive prizes. Every piece of feedback is valued! ✍️ Fill out the Q&A⏬ https://docs.google.com/forms/d/e/1FAIpQLSe8tElYK6V6qN5MqDtDIj7G7SjUw3cSv3bwC-rSXyLVq2USRQ/viewform?usp=send_form 📍 All In One, All In TokenPocket! 🔗https://tp.xyz

TokenPocket

@tokenpocket_channel · Post #1633 · 23.06.2025 г., 04:16

🔥USDT Supply on the TRON Surpasses $80 Billion, now accounting for over 51.74% of global circulation, making TRON the leading stablecoin network. TokenPocket plays a key role by helping users save on gas through innovations like USDT gas payments, one-click energy rentals, and daily subsidy programs. In 2025, TokenPocket continues to scale stablecoin usability — reinforcing its position as the go-to #StablecoinWallet for global users! https://x.com/TokenPocket_TP/status/1936994956620750933

TokenPocket

@tokenpocket_channel · Post #1727 · 10.12.2025 г., 09:10

🎁 Pay Gas with Stablecoins & Share a Price Pool of $2,000 →https://zealy.io/cw/tokenpocket/questboard/sprints 🚀 New round of #StablecoinWallet Campaign is now live on zealy — complete quests and experience paying gas fees with stablecoins via TokenPocket. *Exclusively for the community. No investment advice! Any new quests will be announced in our Telegram community first.💕💕#NFA

TokenPocket

@tokenpocket_channel · Post #1761 · 13.02.2026 г., 03:45

📝 TokenPocket Monthly Report — January 2026 In January, TokenPocket focused on stablecoins, security enhancement and trading experience. 🎯#SAFU TokenPocket now supports Solana Multi-Sig Wallet with native integration. Multi-Sig, Multi- Safe. 🎯 Advanced Trading Experience TokenPocket has expanded Limit Order support to Ethereum, Base, BNB Chain, Arbitrum, and Polygon. With limit orders, users can define their target prices in advance and execute with more discipline. Better execution quality with less time spent watching charts. 🎯#StablecoinWallet TokenPocket now supports stablecoin gas payment on Base, BNB Chain, Polygon, Arbitrum, and Ethereum, and this capability is also available in Swap & Bridge. That means users can pay network fees with stablecoins in more scenarios, reducing reliance on native gas tokens and making transfers, swaps, and bridging much smoother. 📍 All In One, All in TokenPocket https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-january-2026-2c48e070338e

TokenPocket

@tokenpocket_channel · Post #1705 · 04.11.2025 г., 03:31

🚀 Keep Enjoying BNBCHAIN Gas-Free Stablecoin Transfers with TokenPocket! ✅ Supports $USDC & #USD1 - Ends on Nov 30, 2025. ( $USDT Support Ended on Oct 31, 2025) 🔷 Perfect for daily transfers with user-friendly interface. Unlock the future of #StablecoinWallet with TokenPocket. 👉http://tp.xyz

TokenPocket

@tokenpocket_channel · Post #1640 · 02.07.2025 г., 04:29

🎉 Enjoy Gas-Free Stablecoin Transfers on BNBCHAIN with TokenPocket. ✅Supports $USDT & #USD1 - Ended on July 31 🔷Perfect for new users & everyday transfers. Transfer smarter with your #StablecoinWallet! 👉https://tp.xyz

12
ПретходнаСтраница 1 од 2Следна