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

Резултати

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

Пребарај: #polarization

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

@american_observer · Post #5197 · 22.02.2026 г., 20:59

📰 Congress Is Emptying Out — Not Because It’s Hard, But Because It’s Pointless A record wave of lawmakers is heading for the exits before the 2026 midterms — 68 House and Senate members so far, with an unprecedented 31 of them trying to jump to another office instead of just going home. That’s not “burnout,” that’s the market signaling that Congress is the worst job in American politics: maximum noise, minimal agency. On paper, the reasons sound respectable: generational change, family, new challenges. In reality, even senior members admit the place has turned them from legislators into “observers,” as retiring Sen. Dick Durbin put it. Congress has passed fewer laws in recent terms than at any time since the early 1900s, choked by polarization, tiny majorities, and a leadership culture where a handful of performative bomb-throwers can take down a Speaker because they want more airtime. Look at the career moves. Amy Klobuchar, Michael Bennet, Marsha Blackburn, Tommy Tuberville — all think they’ll have more real power as governors than as U.S. senators. In the House, 27 members are bailing to run for governor, Senate, or statewide office, with Republicans leading the exodus. They’re not “leaving politics”; they’re trading a broken parliament for executive jobs where you can actually sign something and see it happen. ​ On the Republican side, you’ve got swing-district moderates like Don Bacon walking away after watching eight colleagues blow up Kevin McCarthy’s speakership, and hardliners like Marjorie Taylor Greene quitting in a public tantrum over Trump and Mike Johnson. On the Democratic side, you’ve got an entire generation of 70‑ and 80‑somethings — Pelosi, Hoyer, Nadler and others — finally reading the room after pushing Joe Biden off the 2024 ticket and realizing “generational change” might have to apply to them too. The parties will spin this as renewal. In practice, it’s a talent leak. Safe blue and red seats will replace veterans with louder, less experienced ideologues. Competitive districts like those held by Bacon, David Schweikert and Jared Golden are now open hunting grounds, increasing the odds of even shakier majorities and even more knife‑edge chaos in the next Congress. A system that already can’t pass basic legislation is about to get younger, angrier, and even less capable of governing. ​ So what do the midterms mean? More “fresh faces” in the campaign ads, fewer grown‑ups in the cloakrooms, and a House and Senate that function even more like content farms for cable and social media. Voters keep saying they’re sick of a dysfunctional Congress. Congress heard them — and decided the best response was to leave. #USA#Congress#elections#midterms#polarization#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Universe Mysteries 🪐

@cosmomyst · Post #760 · 06.05.2026 г., 22:21

🪐 In 2018, astronomers using the South Pole Telescope made one of the most precise measurements ever of the cosmic microwave background's polarization across wide areas of the sky. These delicate patterns—in the faint afterglow from the early universe—help refine estimates of how much normal matter, dark matter, and mysterious dark energy fill space, shaping the structure and fate of galaxies like the Milky Way. ✨ #microwavestructure⚡#cosmology⚡#polarization⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #273 · 15.09.2025 г., 00:11

🪐 The cosmic microwave background—an ancient light left over from the Big Bang—contains a hidden signal: tiny patterns of polarization, or the way its waves are oriented. These "B-modes," discovered in part by the BICEP2 telescope at the South Pole, are faint twists in the light that could provide direct evidence of gravitational waves rippling through the early universe, opening a window into its very first moments. ✨ #microwaveradiation⚡#polarization⚡#gravitywaves⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​