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 слични објави

Пребарај: #environmentalengineering

当前筛选 #environmentalengineering清除筛选
Green University CA | Official

@centralasian_greenuniversity · Post #212 · 15.10.2025 г., 12:53

🇪🇺Green University Hosts the 3rd GREENDT Project Meeting! 🗣From October 14 to 17, 2025, Green University hosts the third project meeting and training seminar within the framework of the Erasmus+ GREENDT project — “Implementing Environmental Engineering Master Degrees through Sustainable Transition and Societal Change.” The GREENDT project, funded by the European Union, aims to develop and implement an innovative Master’s program in Environmental Engineering — empowering universities to train future experts who will lead sustainable transformation and support climate action. 💬The event brought together participants from European and Uzbek universities and research institutions. During the sessions, partners discussed project achievements, future plans, and took part in training activities designed to strengthen teaching and institutional capacities in the field of environmental education. #GreenUniversity#GREENDT#ErasmusPlus#Sustainability#EnvironmentalEngineering#HigherEducation#ClimateAction ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube

Green University CA | Official

@centralasian_greenuniversity · Post #275 · 30.10.2025 г., 11:38

🇮🇹Italy Delegation Visits Green University 📌On October 28, 2025, Green University welcomed a high-level Italian delegation led by H.E. Federico Failla, Ambassador Extraordinary and Plenipotentiary of Italy to Uzbekistan. ✔️During the visit, Acting Rector Sh. Nurulloyev presented the university’s educational, research, and international initiatives and guided the guests through Green University’s campus, research institutes, and climate residence. The Italian side proposed several key initiatives, including: 🟡Joint master’s programs in ecology and environmental engineering; 🟡Student and faculty exchange programs; 🟡Regional events on water management; 🟡Joint research projects on environmental protection and waste recycling; 🟡Establishment of the Italy–Central Asia Environmental Cooperation Center at Green University; 🟡Support for innovative green economy startups. #GreenUniversity#Italy#Cooperation#Sustainability#GreenFuture#EnvironmentalEngineering#Education#ClimateAction ✉️[email protected] ☎️ +998 55 512 00 77 📍Location 🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube