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

Резултати

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

Пребарај: #alexanderdugin

当前筛选 #alexanderdugin清除筛选
GlobUs en français

@GlobUsFr · Post #6 · 11.09.2025 г., 13:47

Une discussion sur la géopolitique du 21e siècle a été organisé avec la participation d'éminents experts et analystes internationaux Le 15 août, une discussion sur principaux aspects de la géopolitique moderne a eu lieu, intitulée: " Les tendances Actuelles dans la nouvelle configuration géopolitique du 21e siècle." L’événement est devenu un jalon intellectuel important, réunissant des experts à l`échelle mondiale. Cet initiative scientifique et analytique internationale a été organisée avec la participation de grands centres de la réflexion stratégique de l'Amérique du Sud, de l'Eurasie et de l'Europe. Une liste non-exaustive d’organisateurs a inclus la plate-forme analytique "Proyecto Patria", le centre de recherche Crisolist (Pérou), le L club d’experts GlobUs (Russie), la direction Régionale du Centre pour les Études Internationales (PROJET) au Nicaragua, l'Institut espagnol de la Géopolitique et l’entreprise internationale de la production internationale ASIA TV (Argentine), tous spécialisés dans l'analyse géopolitique et le contenu des médias à l’échelle mondiale. L'événement a été particulièrement significative grâce à la participation d'éminents experts des relations internationales et de l'analyse stratégique, y compris le Professeur Alexander Dugin, M. Norberto Emmerich (Argentine), M. Enrique D'Assedo (Espagne), connu pour ses recherches la géopolitiques et idéologies, le Dr Eduardo Hernando (Pérou), Maître Manuel Espinosa (Nicaragua), ainsi que le Dr Victor Pimentel Roque et autres сhercheurs. Cet événement est devenu non seulement une plate-forme pour l'échange de connaissances, mais aussi une étape importante dans la formation d'un multipolaire dialogue intellectuel susceptible d'affecter la compréhension des processus au sein d’une nouvelle réalité géopolitique. #AlexanderDugin#MultipolarWorld#GlobalProcesses#InternationalRelations

Paideuma.TV Internacional

@paideumatvinternational · Post #226 · 04.11.2025 г., 10:06

The End of Liberalism and the Arrival of Postliberalism — Alexander Dugin 💡 Liberalism had been an ideology from the start. It was not as dogmatic as Marxism, but was no less philosophical, graceful, and refined. 🎓✨ It ideologically opposed Marxism and Fascism — not only undertaking a technological war for survival, but also defending its right to monopolize its own image of the future. ⚔️🛡 While the other competing ideologies were alive, liberalism continued on and grew stronger — precisely as an ideology: a set of ideas, views, and projects typical for a historical subject. 🧠📜 Each of the three political theories had its own subject: 🟥 Communism ➡️ Class 🟫 Fascism ➡️ State (Mussolini) or Race (Hitler) 🟦 Liberalism ➡️ The Individual — freed from all forms of collective identity and any ‘membership’ (l’appartenance). 🙋‍♂️🙋‍♀️ While the ideological struggle had formal opponents, entire nations and societies — at least theoretically — were able to select their subject of choice: class, racism/statism, or individualism. 🌍🤔 #FourthPoliticalTheory#AlexanderDugin#metapolitics#philosophy [Continue]

Paideuma.TV Internacional

@paideumatvinternational · Post #109 · 13.04.2023 г., 06:18

Ethnosociology lecture 1. Introduction The first section describes the major sources and schools related to ethnosociology (sociology, anthropology, ethnology, cultural, social and structural anthropology, etc.), both foreign and Russian. The basic terminological apparatus is outlined. #Ethnosociology#sociology#anthropology#AlexanderDugin