@EuropeanTribalism · Post #1862 · 05.11.2025 г., 18:12
Gauntlet from the parade armor of Henry III of France, made around 1560. #artifacts @EuropeanTribalism
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
Пребарај: #artifacts
@EuropeanTribalism · Post #1862 · 05.11.2025 г., 18:12
Gauntlet from the parade armor of Henry III of France, made around 1560. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1837 · 20.05.2025 г., 15:18
On the Schöningen Double-Pointed Sticks In Schöningen, Germany, archaeologists found double-pointed sticks, crafted 200,000 years ago by early Europeans, likely Neanderthals. These slender wooden tools, possibly throwing sticks, showcase precise craftsmanship. Sharpened at both ends, they reflect sophisticated woodwork and hunting skill. Their balanced design suggests aerodynamic mastery for small prey. Preserved in sediment, these artifacts highlight Europe’s ancient ingenuity. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1592 · 30.04.2023 г., 16:14
Scythian Gold Goryt Overlay (4th century BC). It was found in Chertomlyk Barrow near Nikopol, Dnieper Area, Russia. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1583 · 25.04.2023 г., 17:34
Altar dedicated to the divine twins Mars and Venus. Marble, Roman artwork of the end of the reign of Trajan (98-117 AD), later re-used under the Hadrianic era (117-132 AD) as a base for a statue of Silvan. From the portico of the Piazzale dei Corporazioni in Ostia Antica. Shown in museum of Palazzo Massimo alle Terme, Rome, Italy #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1582 · 25.04.2023 г., 05:33
A 5th Century BC; Scythian gold ritual vessel with relief images of griffins, lions, horses and deer, from the Bratolyubivka Burial Mound, Kherson Region, Ukraine. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1567 · 02.04.2023 г., 07:51
Figure of Swastika on a Corinthian Silver Coin (550–500 BC) National Archaeological Museum, Athens #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1551 · 09.03.2023 г., 07:47
On swastikas (18) In 2020 scientists discovered a trove in Denmark, which contained around one kilogram of gold artifacts. Among these items there was a disc depicting the Norse god Odin. The interesting thing is, that this disc can be dated to the 5th century A.D., and is thus the oldest trace of Odin worship which was ever found. The runic inscription on the disc reads "He is Odin's man". Interestingly the swastika is clearly depicted next to Odins head in the center of the disc. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1521 · 03.02.2023 г., 13:39
Parade armor and tack made for King Erik XIV. of Sweden, around 1562 A.D. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1517 · 30.01.2023 г., 10:37
Mycenaean daggers, dating back to roughly 1600 B.C. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1512 · 23.01.2023 г., 17:27
Venus of Laussel, c. 23-25,000 years old, found in Marquay, Dordogne, France. Low relief on limestone block, height 18⅛ " Museum of Aquitaine, Bordeaux, France. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1502 · 10.01.2023 г., 07:53
The back of an ancient Greek mirror (2nd-1st Century BC) depicting the Goddess Aphrodite preparing to hit Eros with a sandal as punishment for breaking a vase. #artifacts @EuropeanTribalism
Hashtags
@EuropeanTribalism · Post #1450 · 03.11.2022 г., 16:10
These Roman drinking cups were found in Denmark and date back to the 2nd to 3rd century B.C. #artifacts @EuropeanTribalism
Hashtags