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

Резултати

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

Пребарај: #arabic

当前筛选 #arabic清除筛选
Online Education

@OnlineEducation10 · Post #185 · 10.04.2021 г., 07:11

MUHAMMAD AL ANDALUSI IS DEVELOPING A RESILIENT SIX-FIGURE #ONLINE#EDUCATION COMPANY Al Andalusi founded an online school that is helping to spread the knowledge of #Arabic across the globe - https://www.influencive.com/muhammad-al-andalusi-is-developing-a-resilient-six-figure-online-education-company/

Voiceover Translator(English ➡️ Arabic & Indian Languages) #remote#arabic#hindi#tango NKS Media Agency is looking for talented translators to work on our short video content. Languages We Need: Arabic, Indian What You'll Do: Translate English scripts into your target language and prepare them for AI voiceover. The goal is clear, natural-sounding audio. Check out an example: https://youtube.com/shorts/MkRlgmLdNnM. Note: Since we use AI for voiceovers, your script adaptation for spoken clarity is key! What We're Looking For: • Strong English and target language skills (B2+). • Impeccable grammar. • Reliability and ability to meet deadlines. • A reliable computer and internet connection. What We Offer: • Fully remote position with a flexible schedule. • $3 per video. • Focus on creating clear, audible translations. Ready to Apply? Send your CV and translation samples to [email protected] or DM us on Telegram: t.me/nks_HR. Please use the subject: "Translator [English - Target Language]". ⏺Откликнуться: t.me/nks_HR ➖➖➖➖➖➖➖➖➖➖➖ 🪩 Откликнуться быстрее других ➖➖➖➖➖➖➖➖➖➖➖

TokenPocket

@tokenpocket_channel · Post #838 · 11.10.2023 г., 14:57

🆕We just released TP Wallet's New Version on iOS! 🔺2.1.5🔺 🔵Market page natively integrates Transit Swap. TransitFinance 🔵 Support WalletConnect V2 on trondao. 🔵 Support Address Book feature. 🔵 Support Reset App. 🔵 Support #BTC transaction acceleration. 🔵 Support #Urdu, #Arabic, and #Persian(Farsi) languages. 👉https://tokenpocket.pro 【Details】https://twitter.com/TokenPocket_TP/status/1712119624001863789 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #775 · 12.09.2023 г., 07:15

🆕We just released TokenPocket's New Version on Android! 🔺1.8.5🔺 🔵 Support #CCTP Protocol. 🔵 Support users to edit Gas Fee on the Markets page. 🔵 Add token security detection to the Markets page. 🔵 Support custom network transactions on the Markets page. 🔵 Support custom #Nonce. 🔵 Support #Passphrase. 🔵 Support WalletConnect V2 on trondao. 🔵#EIP1559 Gas Fee model supports #Layer1 and #Layer2 Gas Fee display. 🔵 Support #BTC transaction acceleration. 🔵 Support shared SDK panel and DApp panel. 🔵 Support #Urdu🇵🇰 and #Arabic languages. 🔵 Upgrade wallet migration security reminders. 🔵 Optimize wallet creation/import page. 🔵 Optimize Cold Wallet signature operations. 🔵 Optimize users' experience. 👉https://www.tokenpocket.pro/ 【Details】https://twitter.com/TokenPocket_TP/status/1701494173398876369 【Powered By】Crypto Box