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

Резултати

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

Пребарај: #everydaypsychology

当前筛选 #everydaypsychology清除筛选
Ai Arts Gallery

@AIArtsGallery · Post #8235 · 26.01.2026 г., 11:33

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Ai Arts Gallery — Anime

@AiArtsGalleryAnime · Post #5840 · 26.01.2026 г., 11:30

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Luna Everly

@lunaeverly · Post #47 · 26.01.2026 г., 08:15

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Luna Everly

@lunaeverly · Post #38 · 23.01.2026 г., 08:27

A little ritual before hearing my breath on the mat🧘‍♀️💧 Ran to the kitchen for water — and got stuck for a minute by the window. The neighbor's cat is strolling importantly along the ledge... A quiet moment between "have to" and "done." The body asks for movement, the soul — for this silence. Now I'll give it both. Маленький ритуал перед тем, как услышать своё дыхание на коврике. 🧘‍♀️💧 Забежала на кухню за водой — и застряла на минуту у окна. Соседский кот важно прогуливается по карнизу… Тихий миг между «надо» и «сделала». Тело просит движения, а душа — этой тишины. Сейчас дам и то, и другое. #LunaEverly#BeforeWorkout#Mindfulness#SmallJoys#MyDay#EverydayPsychology

Luna Everly

@lunaeverly · Post #29 · 21.01.2026 г., 08:35

Sometimes the best therapy isn't a session, but a friend's sofa, laughing till you cry, and conversations about nothing serious. ☕️✨ Иногда лучшая терапия — это не сессия, а диван подруги, смех до слёз и разговоры ни о чём серьёзном. ☕️✨ #LunaEverly#SimpleJoys#GirlsNightIn#EverydayPsychology#SoulCare#WarmAndCozy

Luna Everly

@lunaeverly · Post #24 · 20.01.2026 г., 08:51

My morning starts with this mat. 🧘‍♀️ Not for perfect poses, but for silence. Just 20 minutes to talk to my body. Do you have your own way to slow down and listen to yourself? Моё утро начинается с этого коврика. 🧘‍♀️ Не для идеальных поз, а для тишины. Всего 20 минут, чтобы поговорить с телом. А у вас есть свой способ замедлиться и услышать себя? #lunaeverly#yogaforbeginners#morningritual#mindfulness#bodyawareness#quietmoments#everydaypsychology#selfcare

Luna Everly

@lunaeverly · Post #23 · 19.01.2026 г., 14:07

Hey, I'm Luna. 🌙✨ A psychology student who believes the most important conversations sometimes happen not in an office, but over a cup of tea, in a cozy sweater, with the sound of rain against the window. Here I'll share my thoughts, snippets of my life, and a quiet belief that understanding can be found in this world. And photos — I love capturing things that are beautiful, simple, and genuine. Glad you're here. #lunaeverly#thinkingoutloud#support#everydaypsychology#cozy#personaldiary Привет, я Луна. 🌙✨ Студентка-психолог, которая верит, что самые важные разговоры иногда случаются не в кабинете, а за чашкой чая, в уютном свитере и под звук дождя за окном. Здесь я буду делиться своими мыслями, моментами из жизни и тихой уверенностью, что в этом мире можно найти понимание. А ещё фотографиями — мне нравится ловить красивое, простое и настоящее. #лунаэверли#мысливслух#поддержка#психологияповседневности#уют#личныйдневник