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

Резултати

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

Пребарај: #nicholasmeregali

当前筛选 #nicholasmeregali清除筛选
bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1927 · 25.03.2026 г., 22:11

😁2 on 1 by Nicholas Meregali😁 ➡️The 2-on-1 guard is one of the most reliable and beginner-friendly guards in jiu-jitsu. You don’t need high skill, complex movements, or years of experience to make it work. ➡️Why? Because the moment you pull the opponent’s arm across your center line, you take away their athletic power. Their ability to pressure, explode, or pass your guard drops instantly. This creates a stable, safe guard that works against any belt, any size, and any level of opponent. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#Guard#Gi#NewWave 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1876 · 11.11.2025 г., 18:11

🔥NEW RELEASE🔥 😁Loop Choke by Nicholas Meregali😁 ➡️The Loop Choke is one of the most powerful and underrated submissions in Jiu-Jitsu. ➡️In this complete 2.5-hour series, Nicholas breaks down every layer of the position, from the core mechanics to advanced scenarios, covering how to attack from bottom. and top $127😍$14.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#Submission#Gi#NewWave 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1850 · 30.07.2025 г., 18:49

🔥NEW RELEASE🔥 😁Half Guard by Nicholas Meregali😁 ➡️Master the Half-Guard with 4 hours of step-by-step instruction designed to give you real control and understanding of this essential position. Learn to dominate in three key stages, Legs, Hips, and Shoulders, using each to solve specific problems and create clear, strategic progress. ➡️We start with the core concept of Camping, teaching you how to stabilize your position, manage pressure, and control posture through precise body placement over your opponent’s shields, hips, and frames, making your base extremely hard to off-balance. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#NewWave#Gi#HalfGuard 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1908 · 29.01.2026 г., 16:17

🔥NEW RELEASE🔥 😁Back Take by Nicholas Meregali😁 ➡️Back Take System is a complete positional framework designed to teach you how to expose, enter, secure and finish the back with calm precision. ➡️Every movement inside this system is rooted in structure, balance manipulation, and mechanical advantage, allowing you to create openings without speed, explosiveness or risk. $127😍$14.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#Attacks#Gi#NewWave 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1875 · 11.11.2025 г., 18:10

😁The Complete Jiu-Jitsu System Bundle by Nicholas Meregali😁 ➡️This bundle gives you four complete courses, Mount, Half Guard, Lasso Guard, and Deep De La Riva X, all in one package. With over 20 hours of step-by-step instruction from Nicholas Meregali $447😍$49.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#Bundle#Gi#NewWave 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1849 · 30.07.2025 г., 18:48

🔥NEW RELEASE🔥 😁Mount by Nicholas Meregali😁 ➡️Master the mount with 6 hours of detailed instruction, starting with the four key stages: High Posture, Low Posture, High Mount, and Low Mount, to strategically adjust decision-making and stability. ➡️Explore Clips (strategic grips) and Head Position as anchors to maintain a firm base, generate constant pressure, and open safe pathways for transitions and submissions. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#NewWave#Gi#Mount 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1835 · 27.06.2025 г., 21:20

🔥NEW RELEASE🔥 😁Lasso Guard by Nicholas Meregali😁 ➡️With approximately 35 instructional videos, this course delivers a complete systematization of the Lasso Guard, one of the most strategic and adaptable guards in Jiu-Jitsu. ➡️Nicholas Meregali presents a highly organized structure that divides the entire guard into key components, making learning clear and progression natural. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#NewWave#Gi#LassoGuard 💁‍♀️Buy 💁‍♀️

bjjfanaticsinstructionals

@bjjfanaticsinstructionals · Post #1834 · 27.06.2025 г., 21:19

🔥NEW RELEASE🔥 😁Deep De La Riva X by Nicholas Meregali😁 ➡️Deep De La Riva X is a simple and structured guard system developed by Nicholas Meregali, shaped through years of high-pressure experience against world-class opponents at the highest levels of competition. ➡️This course was designed to help you develop a bottom game that’s easy to learn, reliable under pressure, and flexible enough to adapt to any personal style. Whether you’re building your guard from scratch or refining an existing system, Deep De La Riva X will give you the tools to create a connected, repeatable, and intelligent game. $197😍$19.99😍 ❗️Channel Info and FAQ (MUST CHECK BEFORE BUY)❗️ 📱Payment: 📱📱📱 💰Submeta FOR FREE 🌈UFC Picks 👑MasterClass ✈️@bjjfanaticsinstructionals #NicholasMeregali#NewWave#Gi#DeepDeLaRiva 💁‍♀️Buy 💁‍♀️