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

Резултати

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

Пребарај: #azovstal

当前筛选 #azovstal清除筛选
BadVolf

@BadvolfNews · Post #142 · 15.06.2022 г., 13:12

Here is the teaser for #Azovstal, my new movie! Are you ready for a powerful journey to one of the most treacherous places on the planet? You will only see it on my channel. View it in 4K at Youtube.com/c/JohnMarkDougan-BadVolf Or on Rumble (though not in 4K) https://rumble.com/user/BadVolf If you want to see this trailer in 4K, check out he link below: https://youtu.be/7Ro0R8DpxbU

Hashtags

BadVolf

@BadvolfNews · Post #138 · 13.06.2022 г., 14:56

Took a little stroll in #Azovstal today. I'll have incredible footage of the outside, and inside the bunkers, soon!

Hashtags

RTDocumentary

@rtdocumentary · Post #847 · 31.05.2022 г., 14:38

‘I don’t know what the Azov fighters were taking because they were going under their AGS, their SPG. Heavy shelling. An average person would hardly run towards their bursts because the chance of being hit is high,’ a Vostok battalion fighter, codenamed ‘Forest’, described the actions of Ukrainian nationalists at the Azovstal plant exclusively to RT Documentary. The plant is enormous, covering 11 square kilometres. It has underground spaces and long tunnels where the Ukrainian military hid from the shelling. This footage shows a fighter from the Vostok battalion explaining the DNR army's tactics in overpowering Azovstal and describing how and from where the fighting was launched. He also points out the remains of ammunition, the destroyed workshop and other premises after the surrender of the Ukrainian military. This episode will be included in our new film, premiering soon. #Ukraine#Azovstal Follow: https://t.me/rtdocumentary

На Азовстали продолжают находить свидетельства насилия над людьми. В ходе обследования территории военные обнаружили недавно использованную доменную печь с останками внутри и одеждой рядом. Найденное отправлено на экспертизу. Надеемся, что худшие ожидания не подтвердятся, хотя, когда речь идёт о сатанинском "Азове", удивляться уже нечему. Evidence of violence against people continues to be found at the #Azovstal plant. During the survey of the territory, the military found a recently used blast furnace with remains inside and clothes nearby. The found has been sent for examination. We hope that the worst expectations will not be confirmed, although when they talk about the satanic division "#Azov", there is nothing to be surprised about.

RTDocumentary

@rtdocumentary · Post #805 · 23.05.2022 г., 12:23

‘I told them [Azov fighters] that they were coming to life, I would have shot them myself... I don’t have an ounce of pity here...’ These are the words of labour veteran Tatyana Ivanovna. She lives in a village near Azovstal. Listen to her story of the Azov battalion shooting the animals in the area and how they almost killed her for trying to save her chickens. How they mocked her when she asked for water and food: I told their commander: ‘I want to eat, I haven’t eaten for six days …’ And he’s like: ‘I also want to’. But ‘DPR people... came, hugged me, one brought me stew, another brought me bread, and one even thought of bringing sweets’. We turned to the subjects of the film VolunTears. They helped Tatyana Ivanovna and other residents of the village of Uspenovka by bringing them food, water and medicine. #Ukraine#Mariupol#Azovstal Follow: https://t.me/rtdocumentary