@cherepanov_a_e · Post #1612 · 23.04.2025 г., 20:19
Мы любим вас, парни. 🦅Наше время пришло ⏱️#ВремяАвангарда#PlayOffs
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
Пребарај: #playoffs
@cherepanov_a_e · Post #1612 · 23.04.2025 г., 20:19
Мы любим вас, парни. 🦅Наше время пришло ⏱️#ВремяАвангарда#PlayOffs
Hashtags
@cherepanov_a_e · Post #1604 · 19.04.2025 г., 14:17
🚨 ГОООООООООООООООООЛ! МАРТИИИИИИИ! 1:0!!! 🦅Наше время пришло ⏱️#ВремяАвангарда#PlayOffs
Hashtags
@MLB_Daily · Post #16060 · 02.11.2025 г., 05:09
🔵 Yoshinobu Yamamoto de los Dodgers es el primer lanzador en la historia en ganar 3 juegos como visitante en una sola Serie Mundial. 🤯 También es el primero en ganar los Juegos 6 y 7 de una Serie Mundial como visitante. 📰 Vía Opta STATS #️⃣#PlayOffs#Yamamoto#Stats#MLBHistory 🗞 | t.me/MLB_Daily
@sarconsulurals · Post #2375 · 25.07.2025 г., 05:17
🏆⚽️African Football Tournament — Finals this Saturday, July 26! 📍Stadium, 54 Pavla Shamanova Street 🕓Match Schedule: 🥉 3rd Place Match: 🇸🇳 Senegal vs 🇬🇼 Guinea-Bissau — 3:00 PM–4:00 PM ⚽️ Women's Match: "Black Panthers" 🐾 vs "African Lionesses"🦁 — 4:20 PM–5:00 PM 🏆Men's Final: 🇬🇳 Guinea vs 🇲🇱 Mali — 5:10 PM–6:30 PM 🥇🥈🥉Award Ceremony: 6:50 PM 💃 African dance performances during the breaks! 🌍🇿🇦 The Office of the Honorary Consul of South Africa proudly supports the vibrant African community in Yekaterinburg! 📣🥁 Come cheer for the teams! It’s going to be 🔥 hot and full of African spirit! ⚠️Important: There are no bleachers at this school stadium — please bring a blanket, mat, or a folding chair to sit on. #Africa#Football#Playoffs#Yekaterinburg#AfricanDiaspora#SouthAfrica#Ural#SportWithoutBorders
@sarconsulurals · Post #2341 · 18.07.2025 г., 07:17
🏆⚽️ The African Football Tournament is heading into the playoffs! Quarterfinals kick off this Saturday — July 19! 📍Stadium, 24 Pavla Shamanova St. Match schedule: 🇹🇬Togo vs 🇬🇼Guinea-Bissau — 5:00 PM 🇬🇳Guinea vs 🇨🇮Côte d’Ivoire — 5:50 PM 🇲🇱Mali vs 🇨🇲Cameroon — 6:40 PM 🇸🇳Senegal vs 🇳🇬Nigeria — 7:30 PM ⚡️ Semifinals will take place Sunday, July 20! 📍Stadium, 37B Volgogradskaya St. 🌍🇿🇦 The Office of the Honorary Consul of South Africa proudly supports the vibrant and united African community in Yekaterinburg! 📣🥁Come out and cheer for your favorite team! Expect high energy, great vibes, and true African spirit on and off the field! 🔥🌍 #Africa#Football#Playoffs#Tournament#Yekaterinburg#AfricanDiaspora#SouthAfrica#Ural#SportWithoutBorders
@sarconsulurals · Post #2348 · 20.07.2025 г., 05:17
🏆⚽️ African Football Tournament — Semifinals Today, July 20! 📍Stadium: Volgogradskaya Street, 37B 🕓 Match Schedule: 🇬🇼Guinea-Bissau vs 🇬🇳Guinea — 4:00 PM 🇲🇱Mali vs 🇸🇳Senegal — 5:30 PM 🌍🇿🇦 The Office of the Honorary Consul of South Africa proudly supports the vibrant and united African community of Yekaterinburg! 📣🥁Come cheer for the teams! It’s going to be blazing hot with African spirit! 🔥 #Africa#Football#Playoffs#Tournament#Yekaterinburg#AfricanDiaspora#SouthAfrica#Urals#SportsWithoutBorders