TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #72 · 21 апр.

Регулярные выражения иногда могут быть просто монструозными. Выглядеть это может крайне запутанно. Сами регэкспы и без того история непростая, а когда это длинный паттерн на несколько десятков знаков, разобрать там что-либо становится не просто. Но на помощь приходит Python и его стремление сделать нашу жизнь проще! В функциях регулярок можно после паттерна указывать флаги, один из которых позволяет писать паттерны более свободно. А именно, добавлять пробелы и переносы, которые будут игнорированы. В результате мы можем разбить паттерн на строки и добавить комментов. Чтобы это сработало нужно добавить флаг re.VERBOSE. Пробелы в паттерне теперь следует указывать явно спец символами. Согласитесь, что даже с именованными группами а таком виде регэкспа выглядит вполне сносно 😉. #tricks#regex

Резултати

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

Пребарај: #ophiuchus

当前筛选 #ophiuchus清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #26 · 30.07.2025 г., 01:51

🪐 Hidden over 430 light-years away in the constellation Ophiuchus, the protoplanetary disk around the young star AS 209 is riddled with striking gaps and rings thought to be carved by newly forming planets. ALMA observations revealed the disk’s outermost gap may be created by a planet similar in mass to Neptune, astonishing astronomers because it would be forming over 200 astronomical units from its star—far beyond the realms where planets are usually born. ✨ #protoplanets⚡#ALMA⚡#Ophiuchus 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #193 · 26.08.2025 г., 16:11

🪐 The black hole MAXI J1820+070, about 10,000 light-years away in the constellation Ophiuchus, is known for its rapid and dramatic changes in brightness. These "black hole outbursts" happen when the black hole pulls in matter from a companion star, causing huge X-ray flares as the material heats up and spirals inward—revealing just how active and unpredictable these cosmic giants can be. ✨ #blackhole⚡#xray⚡#Ophiuchus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #456 · 25.10.2025 г., 12:21

🪐 A rogue planet called ISO-Oph 98, discovered in the Ophiuchus star-forming region about 475 light-years from Earth, is so light it’s only about 0.6% the mass of our Sun—closer to a giant planet than to a star. Unlike most planets, rogue planets like ISO-Oph 98 drift through space without orbiting any star, shining faintly with their own leftover heat rather than reflecting sunlight. ✨ #rogueplanets⚡#starformation⚡#Ophiuchus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #530 · 30.11.2025 г., 22:21

🪐 The magnetar 1RXS J170849.0–400910, located about 18,000 light-years away in the constellation Ophiuchus, is known for its titanic magnetic field, which can reach over 100 trillion times the strength of Earth's. This intense magnetism is so powerful that it can twist the star's crust, triggering sudden bursts of X-rays and gamma rays—brief flashes that outshine entire regions of space before fading into darkness. ✨ #magnetar⚡#Xrays⚡#Ophiuchus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​