@perspectiveix · Post #1577 · 01.10.2018 г., 18:00
🤣Launch of Windows 95 Nothing is more motivational than this #MondayMotivation - featuring Bill Gates, obviously! 😂 🚀@PerspectiveIX 💌Weekly Pulse: prs.pctvix.co/2wj5dt3
Hashtags
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
Пребарај: #mondaymotivation
@perspectiveix · Post #1577 · 01.10.2018 г., 18:00
🤣Launch of Windows 95 Nothing is more motivational than this #MondayMotivation - featuring Bill Gates, obviously! 😂 🚀@PerspectiveIX 💌Weekly Pulse: prs.pctvix.co/2wj5dt3
Hashtags
@perspectiveix · Post #1249 · 07.05.2018 г., 07:01
“The best time to plant a tree was 20 years ago. The second best time is now.” — Chinese Proverb #MondayMotivation 🚀@PerspectiveIX 📚https://prs.pctvix.co/2JXpl93
Hashtags
@perspectiveix · Post #1221 · 23.04.2018 г., 11:30
"The world is a dangerous place to live, not because of the people who are evil, but because of the people who don't do anything about it." —Albert Einstein #MondayMotivation 🚀@PerspectiveIX 📚https://prs.pctvix.co/2K7cuC3
Hashtags
@JIFAR1 · Post #152 · 14.04.2025 г., 12:12
Did you know Facebook Ads can reach over 2.11 billion people that’s more than a quarter of the world’s population Whether you’re a small business or a solo content creator, your ad has the potential to go global with just a few clicks. This week, don’t just scroll strategize. Start small, test your ideas, and learn as you go. #MondayMotivation
Hashtags
@ikhtiyorrakhman · Post #77 · 05.01.2026 г., 04:39
📚 Bugun o‘qigan kitobingiz ertangi qarorlaringizni belgilaydi. BMT Taraqqiyot Dasturining O‘zbekistondagi doimiy vakili o‘rinbosari Anas Fayad Qarman tavsiya qilgan ushbu kitoblar taraqqiyot, identitet va inson salohiyatiga boshqacha nigoh bilan qarashga undaydi. Ular davlatlar nega rivojlanadi yoki tanazzulga uchraydi, inson o‘zligini qanday anglaydi, sokin odamlar qanday kuchga ega ekanini ko‘rsatadi. Bugun bitta kitob tanlang. O‘zingizga sarmoya qiling. Chunki bilim eng kuchli kapitaldir. #MondayMotivation
Hashtags
@ikhtiyorrakhman · Post #16 · 16.07.2025 г., 10:35
📚 Haftani ilhom bilan boshlang! Kitoblar ruhimizni boyitadi, fikrlarimizni charxlaydi va yangi g‘oyalarga yo‘l ochadi. 🤝 BMT Taraqqiyot Dasturining O'zbekistondagi doimiy vakilasi Akiko Fujii o‘qishga arziydigan 5 ta kitobni tavsiya qiladi. Bu asarlar turli mavzularni yoritadi – inson taraqqiyotidan tortib, jamiyatdagi tenglik, bag‘rikenglik va adolatgacha. 👇 Ushbu 5 ta tavsiya bilan tanishing va siz ham o‘z kutubxonangizga yangi sahifalar qo‘shing! #MondayMotivation
Hashtags
@MB4K_Tech_Telegram · Post #2943 · 11.03.2024 г., 08:47
Good morning! 🌞 Wishing you an incredible start to the week with this stunning #wallpaper. May it add a touch of inspiration to your day! ☺️#MondayMotivation
Hashtags
@perspectiveix · Post #1282 · 21.05.2018 г., 11:00
📰#iXDailyBrief STAT ⚡️ 40.2% of UK 18-25 year olds said that the posts they see on #SocialMedia have influenced their career decisions. (Source: CV-Library) INSIGHT 🌳 Eventually All the Dots Will Connect: An Organic Growth Strategy: prs.pctvix.co/2LjuVo0 OTHER NEWS 👑 The best social media reactions to the royal wedding: prs.pctvix.co/2Ld8yR3 🗞 News publishers recoil at Facebook’s new political advertising rules: prs.pctvix.co/2LkglfU ⚖️ The UK wants to police social media with new ‘online safety’ laws: t.me/iXNews/25674 🤝 Progressive advocacy groups call on the FTC to “make Facebook safe for democracy”: t.me/iXNews/25668 — "It always seems impossible until it's done." ― Nelson Mandela #MondayMotivation Ben, @iXNews
@Diplomatika · Post #346 · 24.05.2021 г., 06:29
#MondayMotivation#Inspiration 👉@Diplomatika
Hashtags
@Diplomatika · Post #345 · 24.05.2021 г., 06:28
#MondayMotivation#Inspiration 👉@Diplomatika
Hashtags
@Diplomatika · Post #331 · 17.05.2021 г., 06:04
#MondayMotivation#Inspiration 👉@Diplomatika
Hashtags
@Diplomatika · Post #330 · 17.05.2021 г., 06:04
#MondayMotivation#Inspiration 👉@Diplomatika
Hashtags