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

Резултати

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

Пребарај: #neptune

当前筛选 #neptune清除筛选
EverythingScience

@EverythingScience · Post #5111 · 16.01.2026 г., 03:10

#PPOD: Neptune 🔵 NASAVoyager 2 made its closest approach to #Neptune in 1989, flying by 4,950 km above its cloud tops. It is still the only spacecraft to have visited the planet! The mission revealed 6 new moons, rings, and geysers erupting from the moon Triton. This Voyager 2 image of Neptune, processed by Kevin Gill, was captured on Aug. 31, 1989. Credit: NASANASAJPLCaltech / Kevin M. Gill Source: @SETIInstitute @EverythingScience

Interesting Planet 🌍

@interesting_planet_facts · Post #1254 · 24.01.2026 г., 22:11

🌎 Neptune’s largest moon, Triton, orbits in the opposite direction to its planet’s rotation—a rare trait called a retrograde orbit. Scientists believe Triton was once a separate icy object captured by Neptune’s gravity around 4 billion years ago. ✨ #planets⚡#astronomy⚡#Neptune 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #830 · 28.09.2025 г., 22:11

🌎 Neptune, the outermost giant planet, has the fastest winds in the Solar System—reaching up to 2,100 kilometers per hour, faster than a speeding jet. ✨ #planets⚡#astronomy⚡#Neptune 👉subscribe Interesting Planet 👉more Channels ​

Маша и Медведица ✨

@astromasha · Post #3477 · 07.03.2024 г., 11:26

В интернете появились снимки новых лун Урана и Нептуна и чуть больше связанных с ними деталей. Одна из нептунианских - S/2021 N1 - самый тусклый спутник планеты, когда-либо открытый с Земли: в период противостояний блеск объекта лишь незначительно выше 27-й зв. вел.; объект не бросается в глаза даже на вот этом суммарном фото. Вся троица - далёкие от своих планет нерегулярные объекты, очевидно, захваченные гравитацией гигантов тела. Тот же S/2021 N1 ещё и обращается вокруг Нептуна за 27.4 года, что также бьёт рекорд спутника Несо (26.7 года) - 60-км тела на орбите всё того же Нептуна (об этом здесь и тут). **** Согласно традициям наименования в системах ледяных гигантов, новая луна Урана будет названа в честь героя из книг У. Шекспира или А. Поупа. Зеледеневшие же камешки на орбите Нептуна (как это принято для нерегулярных лун 8-й планеты) получат имена в честь нереид - морских нимф из древнегреческой мифологии (их есть с запасом, пока ещё хватит). #moons#Uranus#Neptune

Universe Mysteries 🪐

@cosmomyst · Post #190 · 26.08.2025 г., 00:11

🪐 The exoplanet LTT 9779b, discovered about 260 light-years away in the constellation Sculptor, is known as an "ultra-hot Neptune" because it orbits its star so closely that its dayside temperature climbs above 1,700°C—hot enough to vaporize metals. Despite these extreme conditions, observations with the Hubble and Spitzer telescopes have revealed a reflective, metallic atmosphere loaded with silicate (rock-forming mineral) clouds, making this planet a shimmering furnace world unlike any found in our solar system. ✨ #exoplanets⚡#extremes⚡#neptune⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #5 · 29.07.2025 г., 14:43

🌎 On Neptune’s largest moon Triton, geysers of nitrogen ice erupt from beneath the surface, shooting plumes up to 8 kilometers high into the tenuous atmosphere. These cryovolcanic eruptions are driven by sunlight warming a thin layer of transparent ice, a unique phenomenon that shapes Triton's mysterious, dark-streaked terrain. ✨ #Triton⚡#cryovolcanism⚡#Neptune 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #28 · 30.07.2025 г., 02:51

🪐 On Triton, Neptune's largest moon, icy volcanoes known as cryovolcanoes have been observed erupting plumes of nitrogen gas many kilometers high. This frigid world’s surface is scattered with dark streaks—evidence of these geysers venting from below, hinting at surprising geologic activity beneath its frozen crust. ✨ #Triton⚡#cryovolcanoes⚡#Neptune 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #21 · 29.07.2025 г., 23:00

🪐 On Neptune’s moon Triton, geysers erupt through its icy crust, blasting nitrogen gas more than 8 kilometers above the surface. These plumes create dark streaks and ever-changing patterns on Triton's frozen landscape, transforming the distant moon into one of the most dynamic worlds in the outer solar system. ✨ #Triton⚡#geysers⚡#Neptune 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #541 · 06.12.2025 г., 12:21

🪐 Neptune’s moon Proteus, one of the largest moons in the outer solar system, may hide a subsurface ocean beneath its dark, blocky surface. Studies of Proteus’s density and orbital behavior suggest that internal heat from tidal forces—gravitational squeezing by Neptune—could keep water liquid deep inside, making Proteus a surprising addition to the list of possible ocean worlds. ✨ #moons⚡#oceans⚡#neptune⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #340 · 27.09.2025 г., 22:21

🪐 Neptune’s internal heat keeps this giant planet surprisingly active, releasing more than twice as much energy as it receives from the Sun. This extra energy drives Neptune’s fierce storms and the fastest winds in the solar system, revealing that giant planets can be turbulent worlds even in the freezing dark far from their star. ✨ #Neptune⚡#giantplanets⚡#storms⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #166 · 21.08.2025 г., 13:11

🪐 The giant planet Neptune, about 17 times heavier than Earth, has the fastest winds in the solar system, reaching speeds over 2,000 kilometers per hour. These icy, supersonic winds zip through Neptune's blue methane clouds, creating enormous, swirling storms that can dwarf our entire planet. ✨ #Neptune⚡#giantplanets⚡#storms⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #748 · 21.04.2026 г., 22:21

🪐 The giant planet Neptune radiates more energy into space than it receives from the Sun, which is surprising given its great distance from our star. Scientists think this extra heat may come from leftover warmth trapped during Neptune's formation or from slow processes deep within its icy, swirling interior, making Neptune a truly mysterious world at the edge of our solar system. ✨ #Neptune⚡#giantplanets⚡#solarystem⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

12
ПретходнаСтраница 1 од 2Следна