@BoliviaMagica · Post #37 · 27.02.2016 г., 14:22
Tiahuanaco o Tiwanaku, ciudad arqueológica. Cultura preincaica de los #Andes
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
Пребарај: #andes
@BoliviaMagica · Post #37 · 27.02.2016 г., 14:22
Tiahuanaco o Tiwanaku, ciudad arqueológica. Cultura preincaica de los #Andes
Hashtags
@BoliviaMagica · Post #36 · 27.02.2016 г., 14:19
Lago Titicaca, el más alto.del mundo a 3.812 msnm. En los #Andes centrales.
Hashtags
@etnomoda · Post #2595 · 17.09.2023 г., 17:33
Образы от @ carolinakuniverse portraits for Andes, the Fall/Winter 23 Коллекция воплощена в жизнь благодаря сотрудничеству латиноамериканских художников, это дань уважения богатой палитре латиноамериканской культуры. #ANDES Фото @ andresoyuela Стилист@ davidechikm Прическа и макияж @ laupantoja #nationaltrend
Hashtags
@interesting_planet_facts · Post #1278 · 06.02.2026 г., 22:11
🌎 In the Andes Mountains of Peru, the stone towers called chullpas remain a puzzle. Built by pre-Inca cultures, these cylindrical funerary monuments often stand in remote, windswept locations. Some chullpas are several meters tall and precisely constructed with blocks that fit together without mortar. ✨ #archaeology⚡#mystery⚡#Andes 👉subscribe Interesting Planet 👉more Channels
Hashtags
@interesting_planet_facts · Post #552 · 13.08.2025 г., 13:22
🌎 The mountain tapir, native to the Andes, sports a thick woolly coat—unusual for tapirs. This adaptation lets it survive chilly cloud forests and high-altitude grasslands where temperatures often drop near freezing. ✨ #mammals⚡#adaptation⚡#Andes 👉subscribe Interesting Planet
Hashtags
@interesting_planet_facts · Post #1339 · 13.03.2026 г., 12:11
🌎 In 1972, a plane carrying Uruguayan rugby players crashed in the Andes mountains. Survivors endured 72 days in freezing conditions by using the wreckage for shelter and rationing food. Eventually, they resorted to eating the bodies of those who died. Sixteen out of forty-five people survived until rescue teams arrived after two of them hiked for help. ✨ #survival⚡#Andes⚡#history 👉subscribe Interesting Planet 👉more Channels
@interesting_planet_facts · Post #1052 · 19.11.2025 г., 12:11
🌎 After his plane crashed in the Andes in 1972, Nando Parrado survived 72 days stranded in freezing mountains. He trekked for 10 days across rugged terrain with fellow survivor Roberto Canessa to find help, leading rescuers to the remaining members. The crash site was over 3,600 meters above sea level. ✨ #survival⚡#Andes⚡#history 👉subscribe Interesting Planet 👉more Channels
@interesting_planet_facts · Post #390 · 22.07.2025 г., 22:22
🌎 In the high Andes, vizcacha rodents resemble rabbits but are actually closer relatives of chinchillas. Their thick fur and strong hind legs help them survive cold mountain cliffs, where they skillfully leap and sunbathe on rocks. ✨ #andes⚡#mammals⚡#evolution 👉subscribe Interesting Planet
Hashtags
@amazingeo · Post #296 · 25.09.2025 г., 18:31
🌍 The Sacred Valley of the Incas in Peru is a living cultural landscape where ancient terraced fields, traditional villages, and Inca ruins blend with striking Andean scenery. ✨ #heritage⚡#Andes⚡#agriculture⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #612 · 04.02.2026 г., 12:31
🌍 The Andes Mountains are home to over 100 active volcanoes, making them the longest continental volcanic chain on Earth—stretching for more than 7,000 kilometers along South America’s spine. ✨ #mountains⚡#volcanoes⚡#Andes⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@amazingeo · Post #634 · 15.02.2026 г., 20:31
🌍 Nearly half of all quinoa grown worldwide comes from just two regions in the Andes Mountains of Bolivia and Peru, where unique high-altitude conditions make large-scale farming possible. ✨ #agriculture⚡#Andes⚡#crops⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@interesting_planet_facts · Post #1173 · 29.12.2025 г., 18:11
🌎 Deep in the Andes of Bolivia, the ancient site of Tiwanaku features massive stone gateways, carved blocks, and precise alignments with celestial events. Some stones weigh over 100 tons and were transported from quarries more than 10 kilometers away. ✨ #archaeology⚡#andes⚡#tiwanaku 👉subscribe Interesting Planet 👉more Channels
Hashtags