@figma60sec · Post #10768 · 27.03.2026 г., 11:05
Medusa UI — дизайн-система и набор компонентов для Figma. Figma Community • #system
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #65 · 8 апр.
Небольшой трик с регулярными выражениями который редко вижу в чужом коде. Допустим, вам нужно распарсить простой текст и вытащить оттуда пары имя+телефон. Вернуть всё это надо в виде списка словарей. Возьмем очень простой пример текста. >>> text = ''' >>> Alex:8999123456 >>> Mike:+799987654 >>> Oleg:+344456789 >>> ''' Соответственно, для выделения нужных элементов будем использовать группы. Получится такой паттерн: (\w+):([\d+]+) Как мы будем формировать словарь из найденных групп? >>> import re >>> results = [] >>> for match in re.finditer(r"(\w+):([\d+]+)", text): >>> results.append({ >>> "name": match.group(1), >>> "phone": match.group(2) >>> }) >>> print(results) [{'name': 'Alex', 'phone': '8999123456'}, ...] Можно немного сократить запись используя zip >>> results = [] >>> for match in re.finditer(r"(\w+):([\d+]+)", text): >>> results.append(dict(zip(['name', 'phone'], match.groups()))) Но есть способ лучше! Это именованные группы в regex. Можно в паттерне указать имя группы и результат сразу забрать в виде словаря. >>> for match in re.finditer(r"(?P<name>\w+):(?P<phone>[\d+]+)", text): >>> results.append(match.groupdict()) То есть всё что я сделал, это добавил в начале группы (внутри сбокочек) такую запись: (?P<group-name>...) Теперь найденная группа имеет имя и можно обратиться к ней как к элементу списка >>> name = match['name'] Либо забрать сразу весь словарь методом groupdict() >>> match.groupdict() #tricks#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