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

Пребарај: #airisk

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

@ai_and_law · Post #789 · 20.03.2026 г., 08:04

❗️AI Becomes #2 Global Business Risk in Allianz Risk Barometer 2026 According to the 2026 report by Allianz, artificial intelligence has risen to #2 among global business risks, up from #10 in 2025. This is the largest increase recorded in the ranking’s history. AI is now ranked #2 in the Americas, Asia Pacific, and Africa and the Middle East, and #3 in Europe, placing it among the top three risks for companies of all sizes. The report links this rapid rise to both the risks associated with AI systems and their broader societal, political, and economic implications. Since the launch of ChatGPT in 2022, AI deployment and automation have expanded significantly, with further applications in development. AI risk is also closely connected to other major categories, including cybersecurity (the top-ranked risk) as well as political risks, macroeconomic developments, and regulatory changes. #AIrisk#AIGovernance#AIRegulation#Cybersecurity#TechPolicy#RiskManagement

AI & Law

@ai_and_law · Post #734 · 30.12.2025 г., 08:04

🇺🇸OpenAI Seeks New Head of Preparedness to Address Emerging AI Risks OpenAI has opened a search for a Head of Preparedness, a senior executive role tasked with studying and managing emerging risks linked to advanced AI systems. According to CEO Sam Altman, these risks now include models that can meaningfully affect mental health and systems that are becoming capable of identifying critical computer security vulnerabilities. The role is framed around anticipating and mitigating severe harms as frontier AI capabilities evolve. The position will be responsible for executing OpenAI’s preparedness framework, which sets out how the company tracks, evaluates, and prepares for high-impact risks arising from powerful AI models. Altman highlighted challenges such as enabling cybersecurity defenders without empowering attackers, managing the release of sensitive capabilities (including biological ones), and gaining confidence in the safety of systems that may be able to self-improve. The job listing underscores that preparedness is being treated as a core governance function rather than a peripheral safety task. Compensation for the role is listed at USD 555,000 plus equity, signaling the strategic importance OpenAI places on institutional risk oversight as AI capabilities continue to advance. #AIПovernance#AIsafety#AIrisk#TechPolicy#ResponsibleAI