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

Резултати

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

Пребарај: #globalgovernance

当前筛选 #globalgovernance清除筛选
AI & Law

@ai_and_law · Post #155 · 02.11.2023 г., 08:04

UN Forms High-level Advisory Body on AI for Global Governance Hello, everybody! The United Nations Secretary-General has launched a multi-stakeholder High-level Advisory Body on Artificial Intelligence. This groundbreaking initiative is set to tap into AI's vast potential for humanity while simultaneously addressing the associated global risks and uncertainties posed by the rapid proliferation of AI technologies. The Advisory Body will encompass up to 38 experts spanning various disciplines, including government, the private sector, and civil society. These experts, hailing from across the globe, bring diverse viewpoints on AI governance to the table. Their aim is to foster collaboration with existing and emerging initiatives alongside international organizations, creating a balanced and comprehensive dialogue on AI governance. The UN's initiative to convene a High-level Advisory Body on AI is a proactive step towards establishing a coherent global framework for AI governance. #UNAIAdvisoryBody#AI#GlobalGovernance

AI & Law

@ai_and_law · Post #318 · 30.05.2024 г., 07:04

Microsoft Advocates for Robust Global AI Governance Microsoft's new publication, “Global Governance: Goals and Lessons for AI,” authored by Brad Smith and Natasha Crampton, explores AI governance by drawing parallels to civil aviation and nuclear power regulation. The report outlines a multi-layered approach involving industry standards, domestic regulation, and international governance to manage AI's global risks and foster inclusive progress. The publication highlights three key goals for international AI governance: ✅Mitigating Global Risks: International collaboration is crucial to address risks associated with AI that transcend national borders. ✅Ensuring Compatibility: Interoperable regulations across countries will be essential for fostering innovation and avoiding fragmented approaches. ✅Promoting Inclusive Growth: International governance should ensure that everyone benefits from the advancements in AI. The publication emphasizes the necessity for robust global governance frameworks to responsibly harness AI’s potential. “Global Governance: Goals and Lessons for AI” is available in print and e-reader formats. #AI#GlobalGovernance#Technology#Microsoft#AIGovernance

IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9475 · 04.11.2025 г., 08:13

#Beijing_Review🇨🇳📕[PDF]⬇️ 30 #October2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines This issue honors the #UnitedNations at 80, calling it a cornerstone of global cooperation. The cover story explores China’s role as a builder of inclusive #GlobalGovernance and its blueprint for shared progress. From women’s empowerment in #Agriculture to structural resilience and economic elasticity, features reveal the new dynamics shaping the #GlobalSouth. Insights on #ChinaUSRelations, the #ChinaMexico partnership, and Hainan’s innovation wave highlight how diplomacy and commerce interconnect. The culture section revives #SilkRoad heritage and Beijing’s ancient treasures. A visionary issue linking history, equality, and collective resilience for a changing world. #Sustainability#Equality#UN80#AsiaVoice#BRInsights

IELTS|Newspapers & Magazines|English

@emagzinewspars · Post #9490 · 06.11.2025 г., 07:04

#Beijing_Review🇨🇳📕[PDF]⬇️ 6 #November2025 #Weekly_Magazines For learning, for free(dom). @backupofmagazines Beijing Review spotlights China’s #15thFiveYearPlan and its vision for a coordinated, green, and globally inclusive future. The issue unpacks Xi–Trump #Summit diplomacy in Busan, China’s push for #GenderEquality partnerships, and #RCEP as an engine for regional #Integration. Articles explore how strategic planning drives #Sustainability and global development under the banner of #Modernization. From energy transition to cyberspace security, the issue portrays a confident China charting a course for shared growth and stability. #China#GlobalGovernance#Sustainability#FiveYearPlan#RCEP#XiTrumpMeeting#ClimateAction#DigitalFuture#GenderEquality#AsiaPacific