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

Резултати

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

Пребарај: #cryptowallet

当前筛选 #cryptowallet清除筛选
TokenPocket

@tokenpocket_channel · Post #1566 · 06.03.2025 г., 03:44

🔖 TokenPocket Monthly Report — February 2025 🔗 Read Full Report: https://tokenpocket-gm.medium.com/tokenpocket-monthly-report-february-2025-89f2dfa00949 February has been an exciting month filled with innovations and feature upgrades! 🚀 Let’s take a look at the key highlights: Key Updates & Features 🎯 four_meme_ Pre-Launch Market Supported 🎯 MultiSig Wallet Now Supports base Chain 🎯 Expanded Meme Mode to BNB CHAIN & Base 🎯 Gas-Free Transfers on TRON & BNB Chain ✍️ We Value Your Feedback! Participate in our survey and get a chance to win exclusive rewards! 👉 Take the Survey: https://docs.google.com/forms/d/e/1FAIpQLScOoLg_AZIRQtX4lBo7aFwrvVmriXC5Kg_SqRvz0Hwl_ner5A/viewform All-in-one, all in TokenPocket! 👇 👉https://tokenpocket.pro #TokenPocket#CryptoWallet#Web3#DeFi#Blockchain

Quasark.io - Announcement

@quasark_channel · Post #6 · 30.06.2023 г., 12:53

🚀 Last Call for the QuasarK Closed Beta Whitelist Are you ready to experience the future of cryptocurrency wallets? The countdown is on ⏰, and we don't want you to miss out on this exciting opportunity! Here's why you want to be part of our closed beta: 1️⃣ Unrivaled Security: Quasark ensures the safety of your funds like never before. Rest easy, knowing your assets are protected. 2️⃣ User-Friendly Interface: Effortlessly navigate through features, send and receive funds, and stay in control of your financial future. 3️⃣ Cutting-Edge Features: From instant swaps to customizable interface, we've got you covered with a suite of powerful tools. 4️⃣ Prices&Market trends: Access insightful charts and information to make informed investment decisions. 👉 Don't wait any longer! Secure your spot before SUNDAY: https://zealy.io/c/quazark/invite/yJwJUITfB-ehsbeVWcaOP #Quasark#CryptoWallet#ClosedBeta#DigitalAssets#DeFi

MyTonWallet v4.0 — July Update Overview ⚡️Instant Transfer Display Incoming transfers now appear on the recipient’s side immediately after the sender confirms the transaction. While this doesn’t speed up the blockchain itself, it sets a new UX standard — you see the transfer right away, even before it hits the block. #MyTonWallet is the first wallet to achieve this level of speed in displaying transactions. 💡 Combined with recent TON Core updates — where transactions confirm in ~5 seconds under average network load — using TON is now smoother than ever. 👍Refreshed Interface The wallet UI got a fresh polish: updated main card, tabs, balance display, and token color scheme — all now cleaner and more modern. The design comes from the new native app, MyTonWallet Air, which is currently in testing. 💱Send and Stake in Fiat You can now enter amounts in familiar fiat currencies like USD, EUR, RUB, and more — great for beginners or anyone dealing with fiat. 👨‍💻Better dApp Support + TON Connect Improved experience when working with decentralized apps via TON Connect. Plus, new features for devs and power users: 🔵 Import wallets of any version 🔵 Create wallets that work exclusively on TON #MyTonWallet#CryptoWallet#TON#UX#Web3#TONConnect#CryptoNews

DigitalGenie Trading News

@digitalgentop · Post #241 · 06.06.2024 г., 08:02

⚡️Main news: 🔗Wallet on Telegram enforces new KYC rules, switches provider 🟢 PEPE whale up nearly $5M on investment within a month 💵Next $1 trillion company will be DePIN 📌 Alex Labs rolls out post-exploit recovery plan 💰Bitcoin in 42-day ‘boredom zone’ — traders debate next move #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

DigitalGenie Trading News

@digitalgentop · Post #224 · 02.06.2024 г., 16:01

☄️ZKasino gives investors 72-hour window to get back deposited ETH 💵ZKasino denied it tried to make off with $33 million of investor funds in April and has now opened up a short refund window. #Cryptoanalysis #Cryptoenthusiast #Cryptocurrencies #Cryptowallet

💫 Magic Eden expands the NFT universe with Emmy, a multi-chain crypto wallet. Embrace the magic with compatibility for Solana, Bitcoin, Polygon, and Ethereum! What's your blockchain pick? #MagicEden#CryptoWallet#NFTs#Solana#Bitcoin#Polygon#Ethereum 📈BTC price at the time of this post: $43024 👉Continue reading

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