TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

Пронајдени 2 слични објави

Пребарај: #customizable

当前筛选 #customizable清除筛选
GitHub Trends

@githubtrending · Post #14937 · 09.07.2025 г., 14:30

#typescript#api#cms#cms_framework#content_management#content_management_system#customizable#dashboard#graphql#hacktoberfest#headless_cms#jamstack#javascript#koa#koa2#mysql#no_code#nodejs#rest#strapi#typescript Strapi is a free, open-source headless content management system that lets you manage content easily and flexibly, whether you host it yourself or use Strapi Cloud. It works with many databases and lets you build custom APIs, routes, and plugins to fit your needs. You can use any frontend technology you like, such as React, Vue, or Angular, and it comes with a modern, customizable admin panel. Strapi is fast, secure, and scalable, making it simple to deliver content across websites, apps, or devices. This means you get full control over your content and how it’s displayed, saving time and effort while keeping your project future-proof[1][2][3]. https://github.com/strapi/strapi

GitHub Trends

@githubtrending · Post #14712 · 16.05.2025 г., 11:30

#php#calendar#contacts#crm#crm_platform#crm_system#customer_portal#customer_support#customizable#documents#email_marketing#kanban#leads#open_source#php#platform#sales_automation#single_page_application#support EspoCRM is a free, open-source CRM tool that helps you manage customer relationships by organizing leads, contacts, sales, marketing, and support in one easy-to-use web app. It has a clean interface, customizable features, and a REST API for integration, making it flexible for startups, small businesses, and developers. It automates repetitive tasks, saving time and reducing errors, while providing detailed reports to improve decision-making. Being open-source, it’s cost-effective with no licensing fees, and supported by a helpful community. This means you get a powerful, adaptable CRM that boosts productivity and customer management without high costs[1][3][5]. https://github.com/espocrm/espocrm