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

Резултати

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

Пребарај: #kingcharles

当前筛选 #kingcharles清除筛选
American Оbserver

@american_observer · Post #5738 · 28.04.2026 г., 22:59

📰 King Charles Brings a Royal Peace Offering to Trump’s Iran Theater King Charles is heading into Congress with a scripted message of “reconciliation and renewal,” which is diplomatic code for “please stop turning every disagreement into a public brawl.” The speech comes as Trump and Starmer are openly at odds over Iran, so the monarchy is being used as a velvet glove over a very loud fist. This is classic royal utility: say almost nothing concrete, praise the alliance, nod at shared values, and hope the ceremony itself does some of the work. Buckingham Palace even plans a brief sympathy line about the Washington shooting, which is the kind of polished restraint that makes the whole visit look like crisis management with a crown on top. Trump clearly likes the pageantry, even while mocking British military power and quarreling with Starmer over the Iran war. So the king is effectively arriving as a transatlantic mediator who cannot mediate, in a country where diplomacy now has to compete with television-grade grievance. The speech will likely work as symbolism, not policy. But symbolism is the point: when the Americans and the British are arguing over war, oil, and strategy, a polished appeal to “reconciliation and renewal” is the least dangerous message available. #KingCharles#Trump#Starmer#UK#US#Iran#Congress 📱American Оbserver - Stay up to date on all important events 🇺🇸

The Digi Doodles

@Digi_doodles · Post #607 · 20.07.2025 г., 11:32

"Crowning AI-chievement" — Ai-Da paints King Charles III🌷 July 2025 · Geneva · AI for Good Summit The world’s first ultra-realistic robot artist, Ai‑Da, has unveiled a new portrait — this time of King Charles III. The work debuted at the UN’s AI for Good summit in Geneva, exploring creativity, sovereignty, and machine authorship 🎃 🃏Fun fact: Ai‑Da’s portrait of Alan Turing sold at Sotheby’s for over £1 million. This isn’t just robotic gimmickry — it’s a mirror to our cultural anxieties (and fascinations) about AI, power, and legacy. #AIArt#KingCharles#AiDaRobot#ArtAndTech#MachineCreativity

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40086 · 14.11.2025 г., 11:02

👑Did you know? King Charles III has *two* birthdays each year! He was born on November 14, but his official public celebration is held in June with the Trooping the Colour parade. 🎂🎉 [Source] @googlefactss #RoyalFamily#BritishMonarchy#FunFact#KingCharles#Birthday

The Digi Doodles

@Digi_doodles · Post #616 · 27.07.2025 г., 07:15

Ai‑Da’s Algorithm King — Painting Royalty with AI😔 July 2025 · Geneva · AI for Good Summit What happens when a robot paints a king?🦊 Ai‑Da — the world’s first ultra-realistic AI artist — has unveiled Algorithm King, an oil portrait of King Charles III, created using AI-driven decision-making: from image selection to brushstroke patterns. The painting was revealed at the UN’s AI for Good summit, continuing Ai‑Da’s exploration of authorship, legacy, and the blurred line between artist and algorithm. Previously, her portrait of Alan Turing sold at Sotheby’s for over £1 million. This is not just about royalty — it’s about rewriting what we call creativity📖 #AlgorithmKing#AiDa#AIArt#KingCharles#ArtAndTech#AIforGood

JenniferMac

@JenniferMac · Post #155 · 11.10.2022 г., 21:35

#JuanOSavin#MattLeTissier#TomNumbers#WriteSideBlonde Mar-a-Lago Trees cut down, #Trump Arrest, #FBI Trump wants #Peace State of play in England #KingCharles#PrinceWilliam Thirteen #Bloodline families #Israel#Zion#Resurrection#Christ#SecondComing#Magnetics#Electric Fields & much much more https://youtu.be/KOYL4eATX5o👈🏻🌴🎺🔥🇺🇸🇬🇧🕊🧊