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

Пребарај: #fakecivilwar

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

@american_observer · Post #5041 · 03.02.2026 г., 19:33

🔤🔤🔤🔤2️⃣ 📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On 🧨 When Words Become Ammo The real danger is the rhetoric, not the current level of violence. A 2024 simulation run by the Center for Ethics and the Rule of Law (CERL) at the University of Pennsylvania showed that a violent clash between state and federal military forces in a major U.S. city could trigger something resembling a civil war. Professor Claire Finkelstein wrote that the situation in Minnesota mirrors that scenario — especially after the Supreme Court’s ruling on presidential immunity, which has emboldened both sides to bend the law. “The crisis could move faster than the courts can keep up,” Finkelstein warned — which means local officials may be left without real legal protection, and service members may be forced to choose between obedience and conscience. 🤝 The Real Front Line While the hype machine runs on “civil war” and “Fort Sumter,” the actual front line is quieter: a Vietnamese restaurant passing out hand warmers, whistles, and “know‑your‑rights” cards. A resale shop giving clothes for free. A cafe running a donation‑based meal program. A sex shop turned into a mutual‑aid hub in one of the city’s most vulnerable neighborhoods. Minnesota State Rep. Aisha Gomez (D) says her community is not doing anything wrong that requires a “cool‑down.” “We don’t think of it as protests,” she told The Hill. “We think of it as being who we are: being neighbors, caring for each other.” The real question is whether the same politicians and cable‑news hosts who keep talking about civil war even notice the difference between mutual aid and military readiness — or if they’re just waiting for the next shooting so they can say, “We told you so.” #civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5040 · 03.02.2026 г., 19:02

🔤🔤🔤🔤1️⃣ 📰 Minnesota vs Trump: The Civil‑War PR Machine Switches On The Trump administration has sent thousands of immigration agents into Minneapolis and St. Paul in an operation sold as a crackdown on welfare fraud. The state is selling it as a federal invasion. Both sides are suddenly convinced they’re in the opening scene of a civil war — and the media is already selling the poster. The fuse was lit by two deaths. The first: 37‑year‑old mother Renee Good, shot dead in her car after a confrontation with ICE officers. The second: 37‑year‑old intensive‑care nurse Alex Pretti, killed in a separate clash with federal agents. Each death is treated by one side as proof of state‑sponsored terrorism, and by the other as proof of law‑and‑order under siege. Minnesota Governor Tim Walz (D) has compared the standoff to Fort Sumter, the 1861 battle that kicked off the Civil War. Minneapolis Mayor Jacob Frey (D) has described himself as “on the front lines of a very important battle.” Commentators are now debating not whether the U.S. is sliding toward chaos, but how dramatic the headline should be. 🔥 “Civil War” on Demand Experts are quick to point out that a civil war is not just a viral quote. Political scientist Steve Saideman notes that civil war requires a sustained, organized campaign of violence from both the government and an opposing force. Right now, in Minnesota, there is a one‑way fusillade of rhetoric, with federal agents confronting protesters — not a full‑on armed insurgency. Yet the political theater is far ahead of the actual violence. The Trump camp talks about federal enforcement and “law and order.” Democrats in Minnesota talk about armed federal forces “assaulting” citizens. Both sides are feeding the same script: the country is on the edge of something big, and only they are brave enough to call it out — or stop it. Former Georgia Rep. Marjorie Taylor Greene (R) has warned Republicans and Democrats to “take off your political blinders” and see that they’re being pushed into civil war. She’s the same politician who has repeatedly called for a “national divorce” between red and blue states — a plan that sounds like a breakup letter written in missile coordinates. ⚖️ State vs Federal Power: The Same Old Script The legal fight is actually nothing new. Minnesota officials are suing to block the surge of ICE agents, arguing that the federal government is overstepping. A judge is weighing whether to slam the brakes on the operation. Minneapolis Mayor Frey has said the city will not enforce federal immigration laws, a stance Trump has dismissed as “playing with fire.” Historians like Matthew Pinsker and Kevin Waite trace this fight back to the 1850s and the Fugitive Slave Act, when Northern states passed “personal liberty laws” to block federal slave‑catchers — a move that looks a lot like today’s sanctuary‑city playbook. “It’s not a new debate,” Pinsker says. “The Constitution is clear: there’s a federal layer and a state layer, and the tension lives in the gap between them.” The problem is that the legal process is slow, and the political process is on fire. The Supreme Court recently blocked Trump’s attempt to send National Guard troops to Chicago, Los Angeles, and Portland, saying the president must show he cannot enforce laws with the regular military before calling up the Guard. Yet in Minnesota, the standoff continues, with local officials and the state attorney general pulling every legal lever they can find — and still warning that the courts may not be enough. #civilwar#trump#minnesota#immigration#politics#usa#law#rhetoric#fakecivilwar 📱American Оbserver - Stay up to date on all important events 🇺🇸