@profile_pictures_tm · Post #19133 · 27.01.2025 г., 16:52
#Universe💫 ✨✨
Hashtags
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
Пребарај: #universe
@profile_pictures_tm · Post #19133 · 27.01.2025 г., 16:52
#Universe💫 ✨✨
Hashtags
@astronomic · Post #3251 · 24.08.2023 г., 17:27
#Universe @Astronomic
Hashtags
@astronomic · Post #3127 · 19.03.2023 г., 06:28
#UNIVERSE This is so beautiful 😍 @Astronomic
Hashtags
@interesting_planet_facts · Post #1382 · 23.04.2026 г., 22:11
🌎 The coldest known place in the universe is the Boomerang Nebula, located about 5,000 light-years from Earth. Its temperature is just 1 kelvin, or –272°C, which is even colder than the background temperature of space. This nebula formed from rapidly expanding gas blown out by a dying star. ✨ #space⚡#universe⚡#astronomy 👉subscribe Interesting Planet 👉more Channels
Hashtags
@interesting_planet_facts · Post #680 · 03.09.2025 г., 13:22
🌎 The Boötes Void is an enormous empty region of space, spanning about 330 million light-years across. This cosmic void contains far fewer galaxies than expected, making it one of the largest known gaps in the observable universe. ✨ #space⚡#astronomy⚡#universe 👉subscribe Interesting Planet
Hashtags
@astronomic · Post #3211 · 27.06.2023 г., 06:48
#Space #Universe @astronomic
@testflightynoti · Post #38026 · 10.05.2026 г., 08:28
#Asteroid#Music#Universe Join the Asteroid - Music Universe beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/MvMzHPZV Shared by Dimitri
@interesting_planet_facts · Post #626 · 25.08.2025 г., 13:22
🌎 At the edge of the observable universe, mysterious “dark flow” tugs galaxy clusters in the same direction, hinting at unseen forces or realms beyond our cosmic horizon. This puzzling movement can’t be explained by known gravity alone, sparking debate about what lies outside the visible universe. ✨ #space⚡#universe⚡#cosmology 👉subscribe Interesting Planet
Hashtags
@interesting_planet_facts · Post #1118 · 10.12.2025 г., 22:11
🌎 Scientists researching the mysteries of parallel worlds often reference "brane theory," which suggests our universe could be a 3D surface, or 'brane,' floating in higher-dimensional space. In this model, multiple branes—each a universe with its own laws—could exist, and gravity may leak between them, which physicists are testing with experiments at facilities like CERN. ✨ #physics⚡#universe⚡#dimensions 👉subscribe Interesting Planet 👉more Channels
Hashtags
@interesting_planet_facts · Post #780 · 19.09.2025 г., 13:22
🌎 Hidden in the vast cosmic darkness, rogue planets drift alone through space without orbiting any star. These “orphan worlds” form when gravitational forces eject young planets from their home systems. Some estimates suggest our galaxy may contain more rogue planets than stars. ✨ #universe⚡#astronomy⚡#exoplanets 👉subscribe Interesting Planet
Hashtags
@interesting_planet_facts · Post #1236 · 19.01.2026 г., 12:11
🌎 Mysterious dark matter makes up about 27% of the universe, but it does not emit or absorb light, making it invisible. Scientists detect dark matter only through its gravitational effects on galaxies and galaxy clusters. The leading candidates for dark matter particles are called WIMPs—Weakly Interacting Massive Particles. ✨ #space⚡#universe⚡#astrophysics 👉subscribe Interesting Planet 👉more Channels
Hashtags
@interesting_planet_facts · Post #654 · 30.08.2025 г., 00:22
🌎 An ancient mystery lingers at the center of our galaxy—a supermassive black hole called Sagittarius A*. Its powerful gravity bends space and time, hiding beyond a swirling cloud of stars and gas. This invisible giant shapes the Milky Way, anchoring everything around it with immense, unseen force. ✨ #space⚡#blackhole⚡#universe 👉subscribe Interesting Planet
Hashtags