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

Резултати

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

Пребарај: #volcanoes

当前筛选 #volcanoes清除筛选
Amazing Geography 🌍

@amazingeo · Post #424 · 30.10.2025 г., 20:31

🌍 One of the youngest islands on Earth, Hunga Tonga-Hunga Haʻapai, formed in 2015 after an undersea volcanic eruption. New land like this is rare and offers scientists a natural laboratory. ✨ #islands⚡#volcanoes⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #500 · 04.08.2025 г., 20:22

🌎 The maleo bird of Sulawesi uses volcanic heat to hatch its eggs! It buries them in warm sand or soil, letting Earth's warmth do the work, and the chicks dig themselves out and run off ready to face the world—a rare strategy among birds. ✨ #volcanoes⚡#birds⚡#adaptation 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #490 · 03.08.2025 г., 03:22

🌎 Towering above Tanzania, Mount Kilimanjaro is the world’s tallest free-standing mountain. Unlike mountain ranges, it rises alone from the plains, formed by ancient volcanic eruptions. Its snowy peak is a surprising sight just south of the equator. ✨ #geology⚡#volcanoes⚡#Africa 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #1221 · 14.01.2026 г., 12:11

🌎 Rising from an ancient volcanic crater, Aogashima is a remote Japanese island village with about 170 residents. The island’s school has fewer than 10 students, and access is by boat or helicopter due to rough seas and no airport. ✨ #geography⚡#settlements⚡#volcanoes 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #352 · 09.10.2025 г., 18:31

🌍 Mount Etna in Italy is one of the world’s most active volcanoes, but it’s also growing taller each year as repeated eruptions pile new layers of lava onto its summit. ✨ #mountains⚡#volcanoes⚡#geology⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1147 · 20.12.2025 г., 18:11

🌎 Layers of volcanic ash preserved in sediments create natural records of Earth's explosive history. By analyzing ash layers, scientists can pinpoint ancient eruptions and trace how ash traveled across continents. Some distant ash deposits reveal supervolcano eruptions that spread material for thousands of kilometers. ✨ #volcanoes⚡#geology⚡#sediments 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #461 · 29.07.2025 г., 20:22

🌎 At the heart of Africa, Lake Nyos hides a deadly secret—an underwater layer of carbon dioxide gas that once erupted, suffocating everything nearby in 1986. This rare “limnic eruption” happens when gas builds up at depth and suddenly bursts to the surface, releasing an invisible, odorless cloud with devastating effects. ✨ #volcanoes⚡#disasters⚡#geology 👉subscribe Interesting Planet

Amazing Geography 🌍

@amazingeo · Post #345 · 07.10.2025 г., 20:31

🌍 Earth’s mountain-building processes are still active—over 80% of volcanoes erupt near tectonic plate boundaries, constantly creating new land and even islands in the world’s oceans. ✨ #geology⚡#volcanoes⚡#oceans⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1229 · 16.01.2026 г., 22:11

🌎 Around 252 million years ago, the Permian-Triassic extinction wiped out about 90% of marine species and 70% of land vertebrates. Massive volcanic eruptions in Siberia released greenhouse gases that drove rapid global warming, ocean acidification, and low oxygen levels—making it the largest extinction event in Earth's history. ✨ #extinction⚡#volcanoes⚡#paleoclimate 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1172 · 29.12.2025 г., 12:11

🌎 In northeast Azerbaijan, the Gobustan Mud Volcanoes regularly erupt with cool, viscous mud instead of lava. These eruptions can blast columns up to 200 meters high. About half of the world’s estimated 1,000 mud volcanoes are concentrated in this region, producing unique surface features and even spontaneous flames when natural gas ignites. ✨ #Azerbaijan⚡#volcanoes⚡#geology 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #466 · 20.11.2025 г., 20:31

🌍 The ring-shaped chain of volcanoes called the "Ring of Fire" circles the Pacific Ocean, hosting about 75% of all active volcanoes on Earth and causing frequent earthquakes and eruptions. ✨ #volcanoes⚡#mountains⚡#tectonics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #121 · 26.08.2025 г., 16:12

🌍 Mount Erebus in Antarctica is one of the world’s southernmost active volcanoes. Its lava lake stays liquid year-round, despite harsh temperatures that often plunge far below freezing. ✨ #volcanoes⚡#Antarctica⚡#mountains⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

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