@googlefactss · Post #40664 · 17.02.2026 г., 07:48
Greek brides believed that tucking a lump of sugar into the wedding gown would bring sweetness throughout married life. @googlefactss#traditions
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #traditions
@googlefactss · Post #40664 · 17.02.2026 г., 07:48
Greek brides believed that tucking a lump of sugar into the wedding gown would bring sweetness throughout married life. @googlefactss#traditions
Hashtags
@googlefactss · Post #40545 · 16.01.2026 г., 11:01
Green 🟢 is typically not worn at Scottish weddings because it is the color of fairies and an omen of revenge. It is considered unlucky to even eat green vegetables 🥦🫛🥒at a wedding. @googlefactss#traditions
Hashtags
@googlefactss · Post #40333 · 15.12.2025 г., 15:01
In Tibet, sticking out your tongue is a form of greeting. This form of greeting originated in the 9th century as a way to show you were not a reincarnation of a cruel king with a black tongue. @googlefactss#traditions
Hashtags
@googlefactss · Post #39926 · 13.10.2025 г., 17:12
In some parts of the Democratic Republic of Congo, a wedding tradition dictates that the bride and groom cannot smile during the wedding day to show their seriousness about the commitment of marriage. @googlefactss#traditions
Hashtags
@googlefactss · Post #39914 · 09.10.2025 г., 05:07
Women in traditional Rwandan societies avoid eating goat meat as it’s believed it will cause them to grow a beard. @googlefactss#traditions
Hashtags
@rtdocumentary · Post #817 · 26.05.2022 г., 10:18
Deaths and kidnappings are rising in Haiti’s capital Port-au-Prince. More than 200 victims were shot, cut, or burned from April 24 till May 16 as part of a gang war. According to the U.N. High Commissioner for Human Rights, 92 of the dead were civilians, 113 people were injured, 12 were missing, and 49 were kidnapped. Schools, hospitals, and businesses are closed due to the rising crime. Criminals are said to rape children as young as 10 and burn people alive. In addition, thousands of families had to move and leave their homes because of gang fights. Are you interested in what it’s like to live in Haiti? Then, watch our documentary film, Voodoo Spirits of Haiti, about the county’s people, habits, and beliefs. #traditions Follow: https://t.me/rtdocumentary
Hashtags
@rtdocumentary · Post #837 · 29.05.2022 г., 15:59
'Our real life happens here. Our children grow up here. Raising kids in the tundra is tough, but children are still needed'. That what's our film's subject says about living in the far North. Pavla lives in the tundra, and she is a ‘chumwife’, a housewife of Russia’s traditional far North nomadic people. She runs all the household and brings up children by herself. Her family also raise deer. Watch our video to learn more about their life. Pavla's family story is in the documentary Tundra Wonder Mums. #traditions#humanstories Follow: https://t.me/rtdocumentary
Hashtags
@googlefactss · Post #40218 · 29.11.2025 г., 11:00
In Japan, letting a sumo wrestler make your baby cry, Nakizumo, is considered good luck and a sign of the baby's good health. @googlefactss#traditions#asia
Hashtags
@interesting_planet_facts · Post #971 · 27.10.2025 г., 18:11
🌎 In Madagascar, the turning of the bones ceremony, or Famadihana, sees families exhume ancestors, rewrap the remains in fresh cloth, and dance with the bodies to live music. This ritual, held every seven years, honors lineage and strengthens family bonds. ✨ #traditions⚡#anthropology⚡#Madagascar 👉subscribe Interesting Planet 👉more Channels
@interesting_planet_facts · Post #937 · 19.10.2025 г., 22:11
🌎 For centuries, residents of Whittlesea, South Africa, have participated in the Intonjane ritual—a traditional female initiation ceremony. Young women undergo seclusion, teachings about adulthood, and symbolic rituals marking the transition to womanhood. Anthropologists report Intonjane is practiced mainly among Xhosa communities and usually lasts about a week. ✨ #culture⚡#traditions⚡#anthropology 👉subscribe Interesting Planet 👉more Channels
Hashtags
@sarconsulurals · Post #1631 · 21.12.2024 г., 05:15
ЮАР. Танец дождя народности Балобеду, провинция Лимпопо. _________________ A taste of the magical rain dance from the Balobadu People of South Africa, Limpopo. https://www.youtube.com/watch?v=4618qlhssyk #culture#traditions #культура#традиции
@intnewsagency · Post #9383 · 26.04.2026 г., 13:36
Russia Tightens Stadium Fan Rules Russia has introduced stricter regulations for fans at stadiums. Banners, flags, and slogans will now be checked against traditional spiritual and moral values outlined in a presidential decree. Any inscriptions or symbols deemed offensive or likely to provoke negative reactions are banned. Behavioral rules have also been expanded to prohibit acts that insult the honor and dignity of participants and spectators. Whether these measures will restore order or fuel fan discontent remains uncertain. #Russia#sports#fans#traditions The main news of Russia and the world ishere.
Hashtags