@mdmbeng · Post #1937 · 20.06.2024 г., 07:31
#薅羊毛#SafePal#硬件钱包 本月底结束! 价值69.99$的SafePal硬件钱包免费领取 支付5U直邮中国! 教程由 ink 撰写 频道:@mdmbeng 投稿:@mdmbeng_Bot
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
Пребарај: #safepal
@mdmbeng · Post #1937 · 20.06.2024 г., 07:31
#薅羊毛#SafePal#硬件钱包 本月底结束! 价值69.99$的SafePal硬件钱包免费领取 支付5U直邮中国! 教程由 ink 撰写 频道:@mdmbeng 投稿:@mdmbeng_Bot
@tonevents_en · Post #1019 · 25.11.2024 г., 13:15
Tangem Core. Reliability. ❤️ ✅ Three similar devices offer a second and third chance to recover your assets in case of accidents or loss. ✅ The #Tangem chip is a product of a collaboration with Samsung Semiconductors, Inc. Its incredible performance and reliability. ✅ The chip is fortified against electromagnetic pulses (EMP), electrostatic discharge (ESD), and X-rays, adhering to the stringent ISO 7816-1 standard for security. ✅ The entire wallet is IP69K certified, offering full dust and water resistance. It functions optimally in temperatures between –25°C and +50°C. ✅Tangem devices have an impressive 25-year replacement warranty, reflecting our confidence in their longevity and durability. ✅ As a monolithic device, no components have a shorter lifespan or are vulnerable to damage or hacking. 🛡When it comes to safeguarding your assets, nothing is more crucial than unwavering reliability.🤜 🛍🛍Easy buy a cold wallet Tangem with a 10% discount promo code: FG7L9X at tangem.com #Safepal#Ledger#Trezor#TON
@tonevents_en · Post #998 · 19.11.2024 г., 07:53
Tangem Core: Security❤️ What's inside? ✅Certified equipment: The highest level of safety among consumer devices — EAL 6+. ✅Firmware tested twice: First in 2018 by the Swiss company Kudelski Security and again in 2023 by the international laboratory Riscure. Both audits confirmed the absence of vulnerabilities and backdoors in the firmware, which cannot be updated. ✅Open Source Software: Fully transparent and available for review on GitHub. ✅Anti-counterfeit protection: When you activate your wallet, the app verifies the secure element, confirming its authenticity with #Tangem. ✅Private Key Security: Private keys are generated inside the chip when the wallet is activated using a hardware random number generator. No one, including Tangem, has access to these keys. ✅Smart Backup: Three hardware devices instead of one, each providing the same high level of security. No unsafe copies required. ✅Absolute privacy: Your private keys cannot be disclosed under any circumstances. ✅User-controlled access: The wallet is protected by your access code and biometric authentication. 🛡This is what absolute safety means! 🛍🛍Easy buy a cold wallet Tangem with a 10% discount promo code: FG7L9X attangem.com #Safepal#Ledger#Trezor#TON
@tonevents_en · Post #754 · 09.08.2024 г., 16:41
OKX DEX — DEX aggregator and cross-chain bridge — now available on Tangem!⚪️ With a new provider — new opportunities: - Over 1,000,000 new exchange pair options. - Over 1,500 new tokens available for swap. - No KYC. The team is improving the versatility and usability of the Tangem app by integrating more and more providers. Update your app and start exchanging crypto right now!🔄 🛍 Buy a cold wallet #Tangem with a 10% discountfrom our channel using the promo code:FG7L9X #safepal#ledger#trezor#ton#okx
@tonevents_en · Post #865 · 22.09.2024 г., 09:52
OKX DEX — DEX aggregator and cross-chain bridge — now available on Tangem Express!⚪️ With the new provider you can enjoy the following features: ↔️Over 1,000,000 new exchange pair options ↔️Over 1,500 new tokens available for swap ↔️KYC/AML not required🔥 Enjoy the ability to easily exchange crypto between different networks via the new OKX DEX directly in the Tangem app. Swap now! 🛍Buy a cold wallet #Tangem with a 10% discount from our channel using the promo code: FG7L9X #Safepal#Ledger#Trezor#TON#OKX#DEX
@tonevents_en · Post #1682 · 11.07.2025 г., 07:38
😇EVAA Updates: New Integrations, Expanded Features & Security Focus 🪙Integration with SafePal EVAA is now available in the TON DeFi Collection section of the SafePal wallet. Through #TON Connect, users can work with basic assets, take and issue loans, as well as use lending in various LP pairs. The team has prepared a detailed text guide on connecting and using the protocol. ☕️Partnership with Swap Coffee The protocol is integrated into the Swap Coffee aggregator. In the #Yield tab, you can now: • track the current APR for EVAA pools; • deposit and withdraw assets; • manage deposits and loans. 🪙Temporary suspension of collateral in $CATI Since Friday, July 11, support for the $CATI token in the ALTs pool has been temporarily disabled due to low liquidity. All active positions are safe and not subject to liquidation; however, opening new collateral in $CATI is currently not allowed. This decision was made to increase the protocol's stability. 🛡Trail of Bits audit completed EVAA successfully passed the final stage of the audit at Trail of Bits. Despite recent criticism of this company's address due to an incident with another project, the #EVAA team emphasizes that reliability and transparency remain its priority. EVAA app | News | Chat | Website #EVAA#SafePal#CATI#Audit#Security#DeFi#Toncoin