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

Резултати

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

Пребарај: #mv

当前筛选 #mv清除筛选
Pensive|

@PensivePost · Post #5625 · 30.01.2022 г., 13:38

It wasn't intentional! We both knew! You started everything You made me to feel the best in me You made me to understand what true love is You made me to know even affection like this exists You made me to realize all bonds doesn’t need a name You made me to change myself completely… Yeah! It was you behind this beautiful bond but I don’t blame that it’s all your fault now… We’ve been together in many things either be it sad or happiness, victory or failure, emotions or emptiness we stood with each other… You know what!? This is what I have imagined all these years but now I understand that only I needed you in all such situations whereas you never really wanted me by your side. I thought you will feel good when I’m with you; you will need me at the end of the day to share your day; you will search for me when you are not doing well; and lot more that can’t be bundled up in words but you have also made me to realize that you never really wanted me to be by your side… And now all I am doing is to search myself, the true self which have been lost long back in the chaos of loving you blindly… I know what I was, how I was, who I was, before meeting you but now I don’t have even myself with me! It’s all you that I have within me but I don’t blame that it’s all your fault. I know the way you loved me, you cared me, you admired me but all my question is Where’s that person who made me smile without any reason even at odd hours of day? Where’s that person who made me trust them without any need? Where’s that person who made me feel as the most important one? I have expressed my feelings in all possible ways I could and even said you directly but then you ask me again “what should I do?” You know how painful it is to hear such question after letting myself to someone who is close to me than myself… I have understood your situations many times even you knew it pretty well And now I am tired of being the one who understand others and I need to be understood sometimes… I’ve waited for you a lot of times which doesn’t hurt more than you asking “did I ask you to wait?!” what kind of reaction is that to someone who is extremely crazy about you. And I know you don’t need me the way you needed me! Even you know this but you don’t accept it openly. All I did was to love you unconditionally the way you loved me during our starting days… is it this easy for you to change like a totally different person ? Even now I am trying my best to be supportive to you wherein you don’t even have the courtesy to think about my feelings… so when you come to me again after all your issues being sorted out you will not find the one true soul that loved… each time you do this again and again just because I cant leave you. I am losing myself more than the normal and hating myself terribly for not being able to hate you! I do everything for you and react to you only for your behavior, always remember to think a little before you speak… And there are lot more to say but even my words got glued to you and I find it difficult to put it together. This is all my side of the story! if you think the way I portrayed you wrong in here… then tell me your part… at least that may create a reason to talk. #review #mv

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3606 · 24.04.2026 г., 17:16

⨳ 23.04.26 ⨳ Релиз Lyric Video на песню «Chance ~ 好きだっていう前に ~» Смотреть Lyric Video на YouTube-канале cosmosy: https://youtu.be/w9p37ELUxO4?si=mF4Z6FWXgMATclg8 #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3282 · 13.04.2026 г., 15:50

⨳ 13.04.26 ⨳ Релиз клипа на песню «Silence ~ body & soul ~»: Смотреть видеоклип на YouTube-канале cosmosy: https://youtu.be/2mUjLyyZOW0?si=Hk5KJZwg_rB5QfpN #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3251 · 13.04.2026 г., 09:34

⨳ 12.04.26 ⨳ Релиз Lyric Video на песню «Chance ~ 사랑이라 말하기 전에 ~» Смотреть Lyric Video на YouTube-канале cosmosy: https://youtu.be/5hM7UL9bPtI?si=hYdY_59UZCOCgRgR #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3028 · 31.03.2026 г., 09:36

⨳ 31.03.26 ⨳ Релиз perfomance-видео на песню «Silence ~ body & soul ~»: «Готовы? Мотор 🎬 🔗youtu.be/VOSAeU-qNr4 🫨 Зажигай всем телом и душой! — Релиз клипа: 13 апреля 2026 💿 Заказать альбом „~ of the world ~“ в онлайн-магазинах: linktr.ee/cosmosy » #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #2686 · 24.03.2026 г., 16:32

⨳ 24.03.26 ⨳ Релиз клипа на новый сингл «Chance ~ 사랑이라 말하기 전에 ~» Смотреть клип на YouTube-канале cosmosy «cosmosy — первые, кто открыл любовь за пределами вероятности 🎧Слушать песню „Chance“ 💿Предзаказ второго мини-альбома „~ of the world ~“ » #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #2562 · 20.03.2026 г., 10:04

⨳ 20.03.26 ⨳ Релиз perfomance-видео на песню «Chance ~ 사랑이라 말하기 전에 ~»: «[Official Performance] cosmosy "Chance ~ 사랑이라 말하기 전에 ~" |🖤 Switch ON 🔗https://youtu.be/DiS9MZV2ZuI В полной темноте они нашли свет и переписали все правила любви 📺 Релиз клипа: 26.03.24 🎧 Слушать новую песню: https://cosmosy.sng.to/chance » #mv@cosmosy#cosmosy

Hashtags

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