@serbadgernews · Post #2965 · 03.08.2025 г., 15:46
#Concept For improvement for 🎁 What do you think? 👍 - Nice. 😁 - Not my interest.
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
Пребарај: #concept
@serbadgernews · Post #2965 · 03.08.2025 г., 15:46
#Concept For improvement for 🎁 What do you think? 👍 - Nice. 😁 - Not my interest.
Hashtags
@car_news · Post #1269 · 15.05.2025 г., 12:04
🛸This is futuristic: the Hyperion XP-1 hydrogen car with the sound of a spaceship and steam instead of exhaust 🐎 The engine has 2038 hp and acceleration to 100km/h is 2.2 sec. 🔋 One tank of hydrogen helps to overcome in the region of 1600 km. 💰 They are preparing 300 copies, each of which will cost $2 million. #concept@Car_News
Hashtags
@news_and_tips · Post #1145 · 05.07.2023 г., 11:55
😈 Simply "Topics" integration to "Saved message" Source : 💌💌💌 #concept
Hashtags
@ArashRx · Post #417 · 19.01.2024 г., 19:10
🅰Request For Approval Telegram in version 10.6.1 added the ability to restrict incoming messages for Non-Premium subscribers, which creates many restrictions for chats. Read more details in the next post. 🌚Concept designed by @Rxdvl (Still me) -#concept 🅰@ArashRx
Hashtags
@ArashRx · Post #401 · 09.01.2024 г., 12:25
🪟Members Grid Concept 🌿Another suggestion from @Linus 🌚Designed by @Rxdvl (me lol) - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #359 · 13.11.2023 г., 13:49
🅰Emoji Switcher, Hold on an emoji to choose custom emojis Yeah, again a concept, even though it shouldn't be. But this time was @Linus's idea; One of his creative ideas. Designed by me🌚 - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #292 · 06.08.2023 г., 20:57
🅰Telegram Drive Concept📥 Telegram Drive is an unlimited storage based on cloud space which, in addition to Saved Messages, has features such as editing images before sending and sending them as albums. Write your opinion about this concept in the comments 🌚Designed by me - #concept 🅰️@ArashRx
Hashtags
@ArashRx · Post #243 · 19.05.2023 г., 09:13
🅰Telegram Moments Concept🔥 Write your opinion about this feature in the comments 🌚Designed by me - #concept 🅰@ArashRx
Hashtags
@ArashRx · Post #191 · 05.01.2023 г., 16:42
My first concept for Telegram: 🅰Hashtag Notifications Concept🚀 ※ Select the hashtags you want to join be notified about and get notified when those hashtags are posted in a channel🔥 This is only a concept designed by me and it was sent as a suggestion for Telegram and I hope that this concept will be supported so that we can see this feature in Telegram soon. Write your comments about this concept below this post👇 - #concept ⭕️@ArashRx
Hashtags
@Dwflabs · Post #136 · 09.01.2023 г., 00:21
In our latest episode of DWF Chats, we hosted Ty Blackard, Co-founder and Head of Business Development of NFTY Finance 🙌 Hear more about NFTY Finance, how #defi is changing the #concept of credit score and what's coming up for them in 2023 ✨ Full interview here. Click here to find out more. Get connected 💬 Twitter | Linkedin | Website | Discord
@car_news · Post #1204 · 17.04.2025 г., 14:32
🎮 Sony has revealed Afeela electric car, which can be driven with the PS5 joystick ℹ️ The Afeela concept was originally stated to have 400kW (536hp) dual-motor all-wheel-drive, 0-100km/h in 4.8 seconds, and a top speed of 240km/h. 💰 Still no information on price or battery size, but there are two more years until this car hits the road, so price will surely come later. @CarsNews #concept#EV
@bubbletealuv · Post #3382 · 09.10.2025 г., 21:05
ᝬ 🫐🫐🫐🫐🫐𖠵 ゛ (( 🤩) new post by bubbletealuv ↝ #concept ➛ #TXT.. ✨ …( emoji ) 💭 взяли? буду рад увидеть плюсы и реакции.