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

Резултати

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

Пребарај: #functionality

当前筛选 #functionality清除筛选
BAGEVM 广播站

@bagenotice · Post #128 · 04.06.2025 г., 11:09

#功能通知 很高兴的通知大家,目前我们已经上线了新的自动续费的功能,已关闭传统的余额自动扣除方案,这样只有开启了自动续费按钮的机器才会自动扣除余额进行续费,其他机器将不会在出现忘记取消扣除余额的动作,欢迎大家进行体验反馈BUG。 #Functionality Notice We are very happy to inform you that we have launched a new automatic renewal function and have closed the traditional automatic balance deduction plan. In this way, only machines with the automatic renewal button turned on will automatically deduct the balance for renewal. Other machines will not forget to cancel the balance deduction action. Everyone is welcome to experience and feedback BUGs.

BAGEVM 广播站

@bagenotice · Post #119 · 14.04.2025 г., 10:33

#功能通知 很高兴的通知大家,目前我们已经上线了流量自动重置的功能,在流量重置页面你可以点击针对单个实例,设置在流量使用完毕后在账号余额充足的情况下,系统会自动帮您扣除余额重置流量 https://www.bagevm.com/index.php?m=trafficreset #Functionality Notice We are pleased to inform you that we have now launched the traffic automatic reset function, in the traffic reset page you can click on a single instance, set in the traffic after the use of sufficient account balance, the system will automatically help you deduct the balance to reset the traffic https://www.bagevm.com/index.php?m= trafficreset

BLC Market - mini-app BulCoin

@bulcoin_blc · Post #287 · 09.03.2026 г., 11:30

How task creation will work in BLC Market We continue to showcase the interface of the future BLC Market app. Today - one of the key elements of the platform: task creation. A user will be able to post a task in just a few steps: • choose a category • describe the task • add photo or video - if needed • set the price, choosing the coin for payment • publish the task After publication, the task becomes available to performers who can offer their services. All transactions will take place within the platform using BLC. In the following posts, we will show: • what the performer's profile will look like • how arbitration will occur through the Association of Arbitration Courts • how the transaction system works Early access to the interface testing is given to Pioneers participants. #Tasks#BLC_Market#functionality FAQ | BUY