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 слични објави

Пребарај: #atleticotucuman

当前筛选 #atleticotucuman清除筛选
AI match predictions

@ai_match_prediction · Post #11286 · 04.04.2026 г., 09:06

Argentina Liga Profesional Argentina🇦🇷 2026-04-04 16:30 UTC Aldosivi vs. Estudiantes de Rio Cuarto Predicted outcome: Aldosivi❌ Predicted score: 1:0 Actual: Draw 0:0 #Aldosivi#EstudiantesdeRioCuarto 2026-04-04 20:30 UTC Independiente vs. Racing Club Predicted outcome: Draw❌ Predicted score: 2:2 Actual: Independiente 1:0 #Independiente#RacingClub 2026-04-05 00:00 UTC Rosario Central vs. Atletico Tucuman Predicted outcome: Rosario Central✅ Predicted score: 2:1 Actual: Rosario Central 2:1 #RosarioCentral#AtleticoTucuman #Football#ArgentinaLigaProfesional

AI match predictions

@ai_match_prediction · Post #11575 · 18.04.2026 г., 13:05

Argentina Liga Profesional Argentina🇦🇷 2026-04-18 18:00 UTC Gimnasia L.P. vs. Estudiantes de Rio Cuarto Predicted outcome: Gimnasia L.P.✅ Predicted score: 2:0 Actual: Gimnasia L.P. 1:0 #GimnasiaLP#EstudiantesdeRioCuarto 2026-04-18 20:15 UTC Instituto Cordoba vs. Estudiantes L.P. Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Estudiantes L.P. 0:1 #InstitutoCordoba#EstudiantesLP 2026-04-18 22:30 UTC Independiente vs. Defensa Y Justicia Predicted outcome: Independiente✅ Predicted score: 2:1 Actual: Independiente 3:1 #Independiente#DefensaYJusticia 2026-04-19 00:45 UTC Argentinos JRS vs. Atletico Tucuman Predicted outcome: Argentinos JRS✅ Predicted score: 2:1 Actual: Argentinos JRS 1:0 #ArgentinosJRS#AtleticoTucuman #Football#ArgentinaLigaProfesional

AI match predictions

@ai_match_prediction · Post #11768 · 26.04.2026 г., 13:05

Argentina Liga Profesional Argentina🇦🇷 2026-04-26 18:00 UTC Independ. Rivadavia vs. Gimnasia M. Predicted outcome: Independ. Rivadavia✅ Predicted score: 2:1 Actual: Independ. Rivadavia 5:1 #IndependienteRivadavia#GimnasiaM 2026-04-26 20:30 UTC Belgrano Cordoba vs. Gimnasia L.P. Predicted outcome: Belgrano Cordoba❌ Predicted score: 2:1 Actual: Gimnasia L.P. 0:1 #BelgranoCordoba#GimnasiaLP 2026-04-26 20:30 UTC Newells Old Boys vs. Instituto Cordoba Predicted outcome: Instituto Cordoba❌ Predicted score: 1:2 Actual: Draw 1:1 #NewellsOldBoys#InstitutoCordoba 2026-04-26 23:00 UTC Atletico Tucuman vs. Banfield Predicted outcome: Atletico Tucuman❌ Predicted score: 2:1 Actual: Draw 1:1 #AtleticoTucuman#Banfield #Football#ArgentinaLigaProfesional

AI match predictions

@ai_match_prediction · Post #11478 · 12.04.2026 г., 13:05

Argentina Liga Profesional Argentina🇦🇷 2026-04-12 18:00 UTC Newells Old Boys vs. San Lorenzo Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 0:0 #NewellsOldBoys#SanLorenzo 2026-04-12 18:00 UTC Platense vs. Gimnasia M. Predicted outcome: Platense❌ Predicted score: 1:0 Actual: Draw 1:1 #Platense#GimnasiaM 2026-04-12 20:30 UTC Atletico Tucuman vs. Tigre Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 0:0 #AtleticoTucuman#Tigre 2026-04-12 20:30 UTC Huracan vs. Rosario Central Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Huracan 3:1 #Huracan#RosarioCentral 2026-04-12 23:00 UTC Racing Club vs. River Plate Predicted outcome: Draw❌ Predicted score: 1:1 Actual: River Plate 0:2 #RacingClub#RiverPlate #Football#ArgentinaLigaProfesional

AI match predictions

@ai_match_prediction · Post #11893 · 03.05.2026 г., 09:05

Argentina Liga Profesional Argentina🇦🇷 2026-05-03 16:30 UTC Aldosivi vs. Independ. Rivadavia Predicted outcome: Independ. Rivadavia❌ Predicted score: 1:2 Actual: Draw 1:1 #Aldosivi#IndependienteRivadavia 2026-05-03 19:00 UTC Belgrano Cordoba vs. Sarmiento Junin Predicted outcome: Belgrano Cordoba✅ Predicted score: 2:1 Actual: Belgrano Cordoba 4:0 #BelgranoCordoba#SarmientoJunin 2026-05-03 19:00 UTC Gimnasia L.P. vs. Argentinos JRS Predicted outcome: Argentinos JRS❌ Predicted score: 1:2 Actual: Gimnasia L.P. 2:0 #GimnasiaLP#ArgentinosJRS 2026-05-03 19:00 UTC Racing Club vs. Huracan Predicted outcome: Racing Club❌ Predicted score: 2:1 Actual: Draw 0:0 #RacingClub#Huracan 2026-05-03 19:00 UTC Rosario Central vs. Tigre Predicted outcome: Rosario Central❌ Predicted score: 2:1 Actual: Draw 1:1 #RosarioCentral#Tigre 2026-05-03 21:30 UTC River Plate vs. Atletico Tucuman Predicted outcome: River Plate❌ Predicted score: 3:1 Actual: Atletico Tucuman 0:1 #RiverPlate#AtleticoTucuman #Football#ArgentinaLigaProfesional