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

Резултати

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

Пребарај: #emotionalintelligence

当前筛选 #emotionalintelligence清除筛选
Teach For Uzbekistan | Official

@teachforuzbekistan · Post #277 · 30.07.2025 г., 17:08

🧠 Yangi vazifalar oldidan psixologik tayyorgarlik! 💪 Yozgi institut doirasida ishtirokchilar uchun muhim mashg‘ulotlar tashkil etildi. Yangi bosqichga puxta tayyorlanish maqsadida psixolog Nissa Lebedinskaya tomonidan “Team building” mavzusida amaliy mashg‘ulotlar o‘tkazildi. 🧘‍♀️ Ushbu sessiyalar davomida ishtirokchilar o‘z emotsiyalarini anglash va boshqarish, jamoada samarali ishlash, o‘ziga bo‘lgan ishonchni mustahkamlash bo‘yicha muhim ko‘nikmalarga ega bo‘lishdi. 🔥 Bu mashg‘ulotlar ularni yangi vazifalarga ruhiy va psixologik jihatdan tayyorlanishga yordam berdi. Institutdagi har bir bosqich — ulkan o‘sish sari dadil qadam! 🤝O‘zbekiston Yoshlar ishlari agentligiga ushbu faoliyatlarni amalga oshirishda ko‘rsatgan yordami uchun alohida minnatdorchilik bildiramiz. 💬💬💬🗣 🧠 Psychological Preparation Before New Responsibilities! 💪 As part of the Summer Institute, important sessions were organized for participants. In order to thoroughly prepare for the next stage, practical training on the topic of “Team Building” was conducted by psychologist Nissa Lebedinskaya. 🧘‍♀️ During these sessions, participants gained important skills in recognizing and managing their emotions, working effectively in a team, and strengthening self-confidence. 🔥 These trainings helped them prepare mentally and psychologically for new responsibilities. Each stage of the Institute is a confident step toward great growth! 🤝 Special thanks to the Youth Affairs Agency of Uzbekistan for their support in making these activities possible. #SummerInstitute2025#TeamBuilding#PsychologicalSupport#LeadershipJourney#SelfAwareness#EmotionalIntelligence#GrowthMindset#FutureLeaders#TogetherWeGrow#TeachForUzbekistan Telegram |Linkedln| Instagram |Youtube

IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9351 · 15.10.2025 г., 10:30

#The_Harvard_Business_Review🇺🇸📕[PDF]⬇️ #November2025 #December2025 #Monthly_Magazines For learning, for free(dom). @backupofmagazines In this issue, leaders are urged to confront the #HiddenBeliefs that silently block their growth. This edition explores how to build #OctopusOrganizations in a complex world, master #GenAI strategy, and learn from #PrivateEquity playbooks. From “strategic hibernation” to smarter disagreement, the issue decodes #EmotionalIntelligence and #Leadership in times of uncertainty. Discover why “hands-on” CEOs outperform, how to monetize your data, and why #AIpilots often fail. Featuring #EstherDuflo and case studies on CHRO missteps, this issue is a must for #OrganizationalChange agents. #HBR#Strategy#Management#GrowthMindset#BusinessLeadership