@TFGames · Post #1728 · 29.12.2023 г., 16:31
#AS#LEGENDS#GAMES https://testflight.apple.com/join/wxjeQtBy
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
Пребарај: #legends
@TFGames · Post #1728 · 29.12.2023 г., 16:31
#AS#LEGENDS#GAMES https://testflight.apple.com/join/wxjeQtBy
@googlefactss · Post #39958 · 27.10.2025 г., 23:01
Today, exactly 100 years ago on the 28th of October 1925 the mask of Tutankhamun was discovered. There was a legend that those who disturbed the tomb would be cursed, soon after the discovery and disturbance of the tomb certain incidents in wich members of the team started dying made it seem that this legend was true. [read more here] @googlefactss#history#funfact#Egypt#legends
@TFGames · Post #1664 · 26.12.2023 г., 18:48
#TACTIC#LEGENDS#GAMES https://testflight.apple.com/join/OnRQLDUN
@interesting_planet_facts · Post #1319 · 27.02.2026 г., 12:11
🌎 The legend of Yamata no Orochi comes from ancient Japanese mythology and describes an enormous eight-headed, eight-tailed serpent defeated by the god Susanoo. According to the Kojiki and Nihon Shoki texts from the 8th century CE, Susanoo discovered the creature in Izumo Province and tricked it with sake before slaying it. Archaeological evidence indicates these texts are among Japan’s oldest written records. ✨ #mythology⚡#Japan⚡#legends 👉subscribe Interesting Planet 👉more Channels
Hashtags
@interesting_planet_facts · Post #631 · 26.08.2025 г., 03:22
🌎 Ireland’s legend of the Salmon of Knowledge tells of a magical fish that granted wisdom to whoever tasted it. In Celtic mythology, eating this salmon gave the poet Fionn mac Cumhaill extraordinary wisdom, making him a great hero in Irish folklore. ✨ #mythology⚡#legends⚡#folklore 👉subscribe Interesting Planet
Hashtags
@interesting_planet_facts · Post #922 · 17.10.2025 г., 12:11
🌎 On the island of Flores in Indonesia, local legend tells of the Ebu Gogo—small, hairy people said to steal food and mimic speech. In 2003, scientists discovered Homo floresiensis fossils nearby, a tiny ancient human species, fueling debate about whether the myth preserves a memory of real prehistoric encounters. ✨ #legends⚡#anthropology⚡#indonesia 👉subscribe Interesting Planet 👉more Channels
Hashtags
@TFGames · Post #2038 · 01.02.2024 г., 01:49
#TRAVIAN#LEGENDS#MOBILE https://testflight.apple.com/join/QLm2zhZz
@sarconsulurals · Post #3078 · 27.01.2026 г., 02:47
🗺🐍Grootslang (Afrikaans and Dutch for “big snake”) is a legendary creature said to dwell in a deep cave in the Richtersveld region of northwestern South Africa, fiercely guarding its diamonds 💎 from treasure seekers. According to myth, the Grootslang was so powerful and cunning that the gods who created Earth decided to split it into two separate species — the elephant🐘 and the snake. 🐍 Yet some Grootslangs, the legends say, escaped into the deepest cave, where they have survived to this day. The cave is filled with diamonds 💎, but no one can reach them — the creature keeps watch day and night. 🌑✨ #Culture#Myths#SouthAfrica#Africa#Legends#Wildlife
@googlefactss · Post #40775 · 11.03.2026 г., 15:04
Flexible glass was a legendary type of glass from ancient Rome. A craftsman is said to have invented it, and it could supposedly bend without breaking. He showed it to Emperor Tiberius, who reportedly asked him to confirm he was the only one who knew how to make it. The emperor then had him executed to prevent the invention from spreading, an early example of planned obsolescence. No known examples survive today. 🏺🪞📜 [Read more] @googlefactss #FlexibleGlass#AncientRome#History#Legends#Innovation
@interesting_planet_facts · Post #757 · 15.09.2025 г., 20:22
🌎 The Mapuche people of southern Chile and Argentina have long told of the mythical “Pillán,” powerful spirits linked to volcanoes and natural disasters. Early European chroniclers in the 16th century recorded beliefs that eruptions were caused by these spirits’ anger. The word “pillán” still appears in many local place names near active volcanoes. ✨ #Mapuche⚡#mythology⚡#volcanoes⚡#legends 👉subscribe Interesting Planet
@TFGames · Post #1475 · 11.12.2023 г., 19:04
#CAT#LEGENDS#IDLE#RPG#GAMES https://testflight.apple.com/join/Ewprd8hL
@TFGames · Post #2138 · 09.02.2024 г., 13:05
#AS#MOBILE#5V5#LEGENDS#SHOOTER#GAMES https://testflight.apple.com/join/kAi3yDj6