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

Резултати

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

Пребарај: #responsibility

当前筛选 #responsibility清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #11063 · 05.01.2026 г., 01:02

🏢 The State Duma warns residents about the risk of rodent infestations 🐀 If there are no cats in the basements, “attacking wildlife” can appear. By sealing vents and boarding up basements, management companies violate government regulations and common sense. Vladimir Burmatov, First Deputy Chairman of the State Duma Committee on Ecology, noted that this does not help residents — on the contrary, it creates a threat. It is important for cats to have a safe place to shelter from the cold and naturally control rodent populations. Protect your homes and the environment! 🐾 #Ecology#AnimalProtection#Responsibility#RodentControl ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11053 · 03.01.2026 г., 08:04

❗️ Attention! Animal Cruelty Alert In Uzbekistan, cases of intentional harassment of birds, including falcons, have been reported on social media by Instagram users under the account @ake.falcon1. These actions occur not in the wild, but in suburban and residential areas where people, children, and domestic animals are present. ✅ Key points: This is not hunting and not a tradition, but deliberate cruelty. Such actions pose a danger to animals and people alike. 📌 Legislation: According to the Law of the Republic of Uzbekistan “On the Protection and Use of the Animal World” (Art. 43) and Cabinet of Ministers’ regulations, as of January 1, 2025, it is prohibited to: Keep any species of falconiform birds (Clause 35) Use them for harassment Publish videos showing acts of violence Violation of these norms constitutes a direct breach of the law. ⚠️ Calls to action: Notify the National Committee for Ecology and Climate Change Engage law enforcement to assess the offenders’ actions Raise public awareness about legal responsibility 🔴 Important: Public cruelty must not go unpunished. Ignoring it today shifts the boundaries of what is acceptable tomorrow. 💡 Respect for animals is a hallmark of a civilized society. Everyone is responsible for preventing violence. #Ecology#AnimalProtection#Responsibility#Uzbekistan#PR#SocialAwareness☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11165 · 12.01.2026 г., 08:02

🌱 Falsification in the “Green Space” Project and the Question of Responsibility! In the Yakkabog district of Qashqadaryo region, as part of the “Green Space 2025” project, unsown tree seedlings were entered into the electronic platform as planted, which distorts the official reports. Instead of fairly implementing the wise environmental policy of our respected President, some managers intimidated employees, artificially inflating the numbers: as a result, it appears that 70–80% more trees were added in the green area. According to the whistleblower, the head of the Yakkabog district ecology department handed over the electronic platform key to the municipal improvement employees, which allowed incorrect data about the trees to be entered. The actions of Y. Jumayev should be thoroughly investigated by the Committee on Ecology, and the managers involved in the falsification should be held accountable. 🌿 Protecting nature is the responsibility not only of employees but of society as a whole! #GreenSpace#Ecology#Qashqadaryo#Responsibility#Justice#SaveNature ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube