@figma60sec · Post #10768 · 27.03.2026 г., 11:05
Medusa UI — дизайн-система и набор компонентов для Figma. Figma Community • #system
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #system
@figma60sec · Post #10768 · 27.03.2026 г., 11:05
Medusa UI — дизайн-система и набор компонентов для Figma. Figma Community • #system
Hashtags
@figma60sec · Post #10470 · 03.03.2026 г., 11:03
Custom Frame Presets — плагин с собственными размерами для фреймов. 🔗Figma Community ▫️#system
Hashtags
@figma60sec · Post #9573 · 18.12.2025 г., 11:04
Custom Frame Presets — плагин с собственными размерами для фреймов. 🔗Figma Community ▫️#system
Hashtags
@dps_build · Post #3 · 01.03.2023 г., 08:25
System Design Interview 作者 Alex Xu 的 newsletter https://blog.bytebytego.com/ #system
Hashtags
@ziyuanfxvip · Post #12951 · 20.09.2024 г., 10:32
📢 5个版本Windows 11 Version 22H2 官方VLSC正式版光盘系统 🏷️#System | Windows #Windows系统 👉🏻https://www.bccfxs.com/10799/
Hashtags
@interesting_planet_facts · Post #1371 · 12.04.2026 г., 12:11
🌎 Jupiter could fit all other planets inside it and still have space left over. This gas giant has a diameter of about 142,984 kilometers. Its Great Red Spot is a storm wider than Earth itself. ✨ #solar⚡#system⚡#astronomy⚡#planets 👉subscribe Interesting Planet 👉more Channels
Hashtags
@libreware · Post #1069 · 02.05.2022 г., 02:23
Anemo Local private storage for Android Anemo is a private local storage utility application for android. Instead of being a stand-alone file manager user interface, it hooks into various components of Android making it feel like a native part of the operative system. Moreover it provides ways for the user to export contents from other apps and save them as files. Features : - Create folders and organize files freely - All files in the private storage won't appear in the other apps - Access in the system Files application (the DocumentsProviderUI) - Lock access to the private storage >Quick tile >Auto lock after 15 minutes >Password for locking access to the files - Import content using the share Android functionality Download - https://github.com/2bllw8/anemo/releases https://github.com/2bllw8/anemo #New#system#utility @foss_Android
@eventplatform · Post #43 · 03.08.2017 г., 15:27
Не платите за интерактив! Просто откройте сайт votemagic.ru со своего смартфона #positive#voting#system#engineofemotions
@american_observer · Post #5291 · 05.03.2026 г., 17:02
#weapon#system#combat#search 📱American Оbserver - Stay up to date on all important events 🇺🇸
@venturevillagewall · Post #3344 · 18.12.2024 г., 12:06
Helpcare AI Secures $500K Funding Helpcare AI has successfully raised $500K in funding as of December 4, 2024. The company offers a complete operating system for HIPAA-compliant AI-driven automation in healthcare administration, enhancing efficiency in healthcare management. For more details, visit Helpcare AI. #HelpcareAI#Funding#Healthcare#AI#Automation#HIPAA#Technology#HealthcareManagement#Efficiency#Startup#Investment #2024 #Innovation#MedicalAI#Admin#System#Operations#Compliance#HealthTech