@englishmeta1 · Post #580 · 16.05.2026 г., 07:02
#verb #sirjimmy #teamjimmy
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
Пребарај: #verb
@englishmeta1 · Post #580 · 16.05.2026 г., 07:02
#verb #sirjimmy #teamjimmy
Hashtags
@englishmeta1 · Post #562 · 03.05.2026 г., 05:41
#verb #teamjimmy #sirjimmy
Hashtags
@englishmeta1 · Post #553 · 17.04.2026 г., 05:27
#verb #sirjimmy #teamjimmy
Hashtags
@English_Speakers · Post #57 · 12.01.2017 г., 12:13
⤴️#Word_of_the_Day⤴️ 📚nibble Audio Pronunciation /ˈnɪbəl/ #verb 1⃣ : to eat slowly or with small bites [+ object] ✅We nibbled cheese and crackers. [no object] ✅We nibbled on some cheese and crackers before dinner. — often + at ✅She felt a fish nibble at the end of her fishing line. ✅Insects nibbled at the tree's leaves. — sometimes used figuratively ✅He nibbled at the idea of changing careers [=he thought briefly about changing careers], but decided against it in the end. 2⃣ [+ object] : to bite (something) very gently ✅He nibbled her ear. ✅nibble (away) at [phrasal verb] ✅nibble (away) at (something) : to make (something) disappear or go away very slowly ✅Police have been nibbling (away) at crime in the city for years. [=police have been very slowly reducing the amount of crime in the city] @English_Speakers
Hashtags
@learnRCRussian · Post #5753 · 29.11.2025 г., 09:00
Если я погладил много котиков, значит ли это, что я гладиатор? If I've petted many kitties, does that make me a gladiator? • Гладить (imperf.) [gla-dit'] = • Погладить (perf.) [pa-gla-dit'] Meanings: 1) to iron clothes 2) to pet, to stroke (an animal) Also: • Гладиатор (masc.noun) [gla-di-a-tor] А gladiator (a warrior) Not everyone who ГЛАДИт cats can become a ГЛАДИатор. Or can they? 😒⚔️ #tricky_words #verb #meme #learn_russian 😎RCR | Support | Boost
@tonevents_en · Post #1718 · 04.08.2025 г., 14:33
VERB Raises $558M to Acquire TON VERB (ticker VERB) is securing approximately $558 million in funding to build a public TON treasury. With these funds, the company plans to buy Toncoin ($TON) and hold it as its primary reserve asset. The goal is to become the first public company whose core “cushion” consists of TON — effectively treating TON as a reserve asset on its balance sheet. VERB expects to earn both from TON’s price appreciation and staking rewards. Once the deal closes (scheduled for August 7, 2025), VERB will rebrand as TON Strategy Co. (TSC) and continue growing its existing projects. Investors: Over 110 institutional and “crypto-native” participants, including Pantera, Animoca, Kraken, BitGo, Vy Capital, Ribbit Capital, and Graticule (GAMA). Advisors & Partners: Experts from Kingsway Capital, TON Foundation, and Blockchain.com will join governance. Having Pantera, Animoca, Kraken, and BitGo on board is meant to add both expertise and trust. Leadership Team: Executive Chairman: Manuel Stotz (Kingsway Capital; President, TON Foundation) CEO: Veronika Kapustina (former TON Foundation advisor; ex-Morgan Stanley) CFO: Sara Olsen (Europa Partners; former Onyx by JPMorgan) Special Advisor: Peter Smith (CEO & Co-Founder, Blockchain.com) VERB is betting that TON will remain the main blockchain for Telegram’s product ecosystem. As Telegram’s ecosystem grows, so could the value of VERB’s TON reserves. Post-Closing Metrics: ➡️Lock-up:~36% of equity for 6–12 months ➡️Cash Ratio:~77% cash among DAT companies holding non-BTC/ETH assets — one of the highest in the sector ➡️TON Treasury Size: ~5% of TON’s circulating market cap ➡️Capacity for Further TON Accumulation ➡️Ticker: VERB remains listed on Nasdaq, with the new treasury strategy effective post-close ➡️Advisors: Cohen & Company (placement), Reed Smith, Perkins Coie, Brownstein Hyatt Farber Schreck, Morgan Lewis Risks: This is a private placement (PIPE) with standard risks: the transaction may not close, markets could decline, and the strategy might underperform. VERB discloses these risks in its disclaimer. Read press release 📱RedotPay | 🔃StormTrade | ❤️CapsGame |📱Degenphone #TON#Telegram#PIPE#Verb#Investments#Treasury