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

Пребарај: #raydium

当前筛选 #raydium清除筛选

​​🔥We are live! $CHICKSare now tradeable on #Raydium! 🔥 After working through the night on this we have finally gotten the LP live and working and you may now trade on Raydium using #Solana or USDC. Token distribution update coming soon! 👉Buy link below:👇 https://raydium.io/swap/?from=11111111111111111111111111111111&to=cxxShYRVcepDudXhe7U62QHvw8uBJoKFifmzggGKVC2

Garantex News Russia

@garantexnews · Post #13961 · 19.12.2024 г., 11:00

📈Solana возглавил рейтинг блокчейнов по DEX-торгам 🔸Solana стал лидером по объемам торгов на децентрализованных биржах (DEX), обойдя крупные блокчейны. SOL также занял первое место по количеству активных адресов. 🔸 На фоне роста активности сети, после запуска NFT-коллекции Pudgy Penguins, в Solana было обработано 66,9 млн транзакций, что является рекордом. 🔸 Solana уступает блокчейнам Ethereum, Base и Tron по объему переводов стейблкоинов, но все же продолжает оставаться ключевой платформой для мемкоинов и NFT. 🔸DeFi-проекты, базирующиеся на Solana, аккумулировали активы на $9,189 млрд, а объем стейблкоинов составил $4,795 млрд. 🔸Raydium и Orca остаются основными децентрализованными биржами на Solana с объемом торгов $2,521 млрд и $880,87 млн соответственно. #Solana#DEX#NFT#PudgyPenguins#Raydium#Orca#DeFi АкадемияGarantex|Garantex Announcements|ВКонтакте|YouTube

USDE by 👍XBANKING — A Next-Generation Decentralized Stablecoin XBANKING has launched USDE, a new stablecoin built specifically for DeFi, trading, and everyday payments. USDE blends stability, decentralization, and yield — offering 8% APR just for holding. Built on the 🤑 Solana blockchain. 💰USDE minting is now live ➡️app.xbanking.org 👍 1 USDE = 1 USD — always. It’s backed 1:1 by liquid assets — USDT and USDC, with real-time reserves exceeding 101%. 🔎Why hold USDE? ✔️ Earn 8% APR simply by holding — the yield is built into the token. ✔️ No need to chase DeFi protocols or calculate risks — USDE starts earning immediately. ✔️ Use it like any other stablecoin: trade, add to liquidity pools, lend, or borrow. ✔️ 100%+ backed by USDT and USDC — no liquidation risks like with collateralized stablecoins. ✔️ Runs on Solana — fast, cheap, and user-friendly. 😀How does it work? • Users deposit USDT or USDC into the XBANKING smart contract • In return, they receive USDE at a 1:1 ratio • The deposited stablecoins are allocated to DeFi strategies (liquidity pools, farming, etc.) • The yield is distributed among all USDE holders 💼What you can do with USDE ✔️ Hold to earn 8% APR ✔️ Swap to USDT or USDC with zero fees ✔️ Trade on DEXs (available on Raydium) ✔️ Provide liquidity ✔️ Lend and borrow 🛡 What makes USDE stand out? • Backed only by $USDT and $USDC • Reserves exceed 100% • 8% APR just for holding • Minting and burning are controlled via smart contracts • No liquidation mechanisms — unlike collateralized stablecoins • Includes a token freeze function as an additional safeguard against phishing or exploits 📌Where to use USDE — Mint: app.xbanking.org — Smart contract: 8dt9fQhoRKuWCSAsYweG2UMF3rbcG9xzNCTWXXSmdmEi — View on Solscan — DEX: Raydium USDE by XBANKING — a hybrid stablecoin designed for active DeFi use and long-term yield. #USDE#Xbanking#Stablecoin#DeFi#Solana#Raydium#CryptoUX

Venture Village Wall 🦄

@venturevillagewall · Post #4246 · 26.02.2025 г., 01:00

Bitcoin Whales Buy the Dip! Bitcoin whales are buying during the price dip. Circle CEO Jeremy Allaire advocates for U.S. regulation of stablecoins, insisting companies must register if offering dollar-backed stablecoins in the U.S. PayPal plans to integrate its stablecoin PYUSD into various products, aiming for global payments via Hyperwallet in 2025. Pump.fun is launching its own AMM and leaving Raydium. Read more on Circle's stance here. For PayPal's integration plans, click here. Details about Pump.fun's move can be found here. #Bitcoin#Stablecoin#Regulation#Circle#PayPal#PYUSD#DeFi#Crypto#AMM#Raydium#Finance#ConsumerProtection#Blockchain#Payments#MarketTrends#Investment#TechNews#VC

🚀🚀The intelligent investors💯💯

@the_intelligent_investors · Post #1431 · 01.05.2024 г., 17:15

🚀 Introducing Solerium - The Future of DeFi! 🚀 🔥 Inspired by innovation and driven by community, Solerium aims to revolutionize the world of decentralized finance! 🌐 📅 Launch Date: Launched on April 28th at 2 pm UTC ✅ Liquidity Pool Burned ✅ 0% Transaction Tax ✅ Mint/Freeze Authority Revoked ✅ Stealth Launch 📨 Telegram: [Join Here] (https://t.me/solerium_io) 🐦 Twitter: [Follow Us] (https://twitter.com/Solerium_io) 🎵 TikTok: [Follow Us] (https://www.tiktok.com/@solerium_io) 🌐 Website: [Discover More] (https://solerium.io) 🔗 Contract: [View on SolScan] (https://solscan.io/token/H2fjXJsDJq2ghbXzcYJzQ73sWj6A26qZouLtx6wmrd6) Staking Live: [Start Staking Now] (https://beta.raydium.io/liquidity/increase/?mode=stake&pool_id=84FV6dbSWAxWriRC631ccu9FVPCNf8UpKHEF614Sxqgw) 700,000 SOLE Distributed with Staking SOLE/SOL Liquidity 🚀 Purchase SOLE on #Raydium [here] (https://beta.raydium.io/swap/?inputMint=sol&outputMint=H2fjXJsDJq2ghbXzcYJzQ73sWj6A26qZouLtx6wmrd6) or #Jupiter [here] (https://jup.ag/swap/SOL-H2fjXJsDJq2ghbXzcYJzQ73sWj6A26qZouLtx6wmrd6) Join Solerium today and be part of the DeFi revolution! 🚀💫 #Solerium#SOLE#DeFi#CryptoRevolution#Solana#SOL $SOLE $SOL #meme#memetoken#memecoin

Venture Village Wall 🦄

@venturevillagewall · Post #3921 · 19.01.2025 г., 13:00

Trump Meme Token Sparks Controversy Discussions intensify over the safety and ethicality of the TRUMP meme token, which has surged to $70. Concerns arise from its tokenomics, where 80% is held by Trump-affiliated firms. The first unlock phase is just three months away. Crypto investor Scott Melker criticizes the project as a money grab. For more insights, check the full article here. #TRUMP#Crypto#AI#Blockchain#Solana#DEX#MemeToken#Tokenomics#Investing#CryptoInvestor#Raydium#Moonshot#DeFi#GenerativeAI#Bittensor#AI16Z#Freysa#AIXBT#Eliza