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

Резултати

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

Пребарај: #easter

当前筛选 #easter清除筛选

🧺 🧁 🧁 🥚 🥚 🥚 🥚 🥚 🥚 🐰 🥕 🐇 🐰 🐇 🐰 🐰 🥚 🥚 🐥 🏵 💮 🪴 🌺 🪴 🥚 🥚 🥚 🚩 🚩 🚩 🚩🥮🙏 🤩🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 🤩 🤩 🤩 🤩 🤩 🤩🥚 🤩 🤩🥚🥚🥚🥚 пасха | add#easter please boost 👼

Hashtags

Quick and easy way to color your eggs for #Easter: Wrap plant parts of your choice around an egg with a nylon sock very tightly, so that the plant is pressed against the shell. Place the eggs into warm water with loads of onion peels. Boil it for twelve minutes and let everything cool down. Remove the sock with the plant and rub speck all over the egg to make it look shiny. Happy Easter to all of you! @EuropeanTribalism

Hashtags

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4534 · 17.04.2025 г., 16:00

An online video demonstrating how to dye Easter eggs with red wine has become viral. The only thing: keep the wine in the pot, not in yourself! 🔻Here's how: ⚡️Pour any red wine into a pot with red eggs. ⚡️Bring to a boil and simmer for 10 minutes. ⚡️Then cool and put the pot with the eggs and wine into the fridge (not freezer!) for the night. ⚡️In the morning, place them on paper towels to dry. ⚡️The result is matte, shimmering Easter eggs with an unusual color. 🐣Happy Easter to all! #holidays #Easter 😎RCRussian | Support | Boost

TONlines – News

@tonlines · Post #6814 · 17.04.2025 г., 13:05

JetTon Games: Final Stage of Easter Treasure Hunt Tournament #JetTon#EASTER JetTon Games announces the final stage of the Easter Treasure Hunt Tournament with a total prize pool of €250,000. Participants can compete in various games like Hot Triple Sevens and The Greatest Catch Bonus Buy with a minimum bet of 0.2 EUR. This is the last opportunity to secure a position in the winners ranking. Source: link @tonlines

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4547 · 19.04.2025 г., 14:00

🙏🙏🙏Some Russian Easter mood for you: • Красить яйца (imperf.) [kra-sit' yay-tsa] To colour/dye eggs ❓А вы красите яйца на Пасху? Video: AIvikki_topneuro #AI #holidays #Easter 😎RCRussian | Support | Boost

Андрей Лаупер

@free4ones · Post #935 · 20.04.2025 г., 09:07

Как все изменилось за несколько сотен лет... Когда-то последователи скрывались в темных катакомбах, а сегодня сторонников учения бесчисленное множество — христианство прошло огромный путь, став одной из главных духовных сил мира. #пасха#easter

Tkong Channel

@tkong_channel · Post #121 · 19.04.2025 г., 12:38

🐰 Happy Easter from Tkong! 💐 Wishing you a peaceful and joyful spring. 🐰 Tkong 祝你復活節快樂! 💐 願這個春天帶來平安與喜悅。 #Easter#Tkong

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