@googlefactss · Post #40910 · 08.04.2026 г., 21:19
Catfish have over 27,000 taste buds. Humans have around 7,000. @googlefactss#fish
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
Пребарај: #fish
@googlefactss · Post #40910 · 08.04.2026 г., 21:19
Catfish have over 27,000 taste buds. Humans have around 7,000. @googlefactss#fish
Hashtags
@googlefactss · Post #40314 · 13.12.2025 г., 11:04
Eels undergo a life cycle called catadromous. This is when an animal is born in salt water, migrates to fresh water to grow, and then returns to the ocean to spawn @googlefactss#fish
Hashtags
@googlefactss · Post #39912 · 08.10.2025 г., 18:04
Lampreys and hagfish are the most primitive living vertebrates, representing the sole survivors of the jawless fish lineage that diverged early in vertebrate evolution. @googlefactss#fish
Hashtags
@skilllabs · Post #255 · 01.06.2022 г., 15:36
Hey Skill Labs community, have you already played our fishing game on Discord?🐠🧩 👉 Join our Discord NOW: https://discord.com/invite/skilllabs 👉 Go to the channel called: #fish (in the offtop section) and see the rules in a pinned message 👉 We are currently hosting tournaments!
Hashtags
@tonorbital · Post #243 · 25.06.2024 г., 18:01
🎉 Exciting News from #FISH! 🎉 Minting for @RetardinoTON gamepass NFTs is now live! 💫 In the upcoming patch, players can also purchase amazing cosmetic items associated with RetarDino partners. 📈 As a bonus, 50% of the profit will go towards the buyback and burn of #FISH tokens. 🎮 Don't miss out—owning an NFT is your exclusive gateway to play and earn $WFOSS. Let the adventure begin!
Hashtags
@pixiv · Post #215 · 23.05.2017 г., 14:08
#Fish げみ pixiv.net/i/28680466
Hashtags
@pixiv · Post #201 · 16.05.2017 г., 13:07
#Fish enj! pixiv.net/i/58149654
Hashtags
@skilllabs · Post #195 · 10.05.2022 г., 14:31
Beneficial Fishing - You Got 10 BUSD 🤑 Do you remember that Skill Labs launched a Fishing game on Discord? 🔝 We summarized the first results and decided to give 10 BUSD for TOP-5 on the list 🪝 From now, Skill Labs announcing a small tournament for everyone, you play - you earn 👉 Join our Discord and play: https://discord.gg/skilllabs 👉 Go to the channel named: #fish (the offtop section) The results will be published on May 13th 🚀 🐡🐠🐟
Hashtags
@skilllabs · Post #165 · 29.04.2022 г., 20:35
Play in Discord and get rewards 🕹 Hey Skill Guilders, let's play the fishing game using our Discord bot 🦈 👉 Join our Discord: https://discord.gg/skillguilds 👉 Go to the channel called: #fish (the offtop section) 👉 There you will see a pinned message with rules and a tutorial on how to play 🧩 Play the game and complete daily quests using the command: %quests Very soon we will launch a tournament among our community, be ready and train yourself 💪 Join now: https://discord.gg/skillguilds
Hashtags
@SukoFaultyArtLair · Post #4166 · 23.09.2019 г., 20:14
https://twitter.com/Krekk0v/status/1088215914569318402 #female#fish
@OnlineEducation10 · Post #74 · 24.02.2021 г., 05:54
Rare jellyfish species called Halitrephes maasi - #Animals#Fishhttps://twitter.com/i/status/1359961404028063744
@TgSticker · Post #42384 · 04.02.2026 г., 11:21
Которыбы #cat#fish#memes 😊создать свои стикеры