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

Резултати

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

Пребарај: #celtavigo

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

@ai_match_prediction · Post #12059 · 12.05.2026 г., 09:05

Spain La Liga🇪🇸 2026-05-12 17:00 UTC Celta Vigo vs. Levante Predicted outcome: Celta Vigo❌ Predicted score: 2:1 Actual: Levante 2:3 #CeltaVigo#Levante 2026-05-12 18:00 UTC Real Betis vs. Elche Predicted outcome: Real Betis✅ Predicted score: 2:1 Actual: Real Betis 2:1 #RealBetis#Elche 2026-05-12 19:30 UTC Osasuna vs. Atletico Madrid Predicted outcome: Osasuna❌ Predicted score: 2:1 Actual: Atletico Madrid 1:2 #Osasuna#AtleticoMadrid #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11973 · 09.05.2026 г., 05:05

Spain La Liga🇪🇸 2026-05-09 12:00 UTC Elche vs. Alaves Predicted outcome: Elche❌ Predicted score: 3:2 Actual: Draw 1:1 #Elche#Alaves 2026-05-09 16:30 UTC Atletico Madrid vs. Celta Vigo Predicted outcome: Atletico Madrid❌ Predicted score: 2:1 Actual: Celta Vigo 0:1 #AtleticoMadrid#CeltaVigo 2026-05-09 19:00 UTC Real Sociedad vs. Real Betis Predicted outcome: Real Sociedad❌ Predicted score: 3:2 Actual: Draw 2:2 #RealSociedad#RealBetis #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11656 · 22.04.2026 г., 09:05

Spain La Liga🇪🇸 2026-04-22 17:00 UTC Elche vs. Atletico Madrid Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Elche 3:2 #Elche#AtleticoMadrid 2026-04-22 18:00 UTC Real Sociedad vs. Getafe Predicted outcome: Real Sociedad❌ Predicted score: 1:0 Actual: Getafe 0:1 #RealSociedad#Getafe 2026-04-22 19:30 UTC Barcelona vs. Celta Vigo Predicted outcome: Barcelona✅ Predicted score: 3:1 Actual: Barcelona 1:0 #Barcelona#CeltaVigo #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11388 · 09.04.2026 г., 13:05

UEFA Europa League🌍 2026-04-09 19:00 UTC SC Freiburg vs. Celta Vigo Predicted outcome: Draw❌ Predicted score: 1:1 Actual: SC Freiburg 3:0 #Freiburg#CeltaVigo 2026-04-09 19:00 UTC FC Porto vs. Nottingham Forest Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 1:1 #Porto#NottinghamForest 🔥 PREMIUM PICK 🔥 2026-04-09 19:00 UTC Bologna vs. Aston Villa Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Aston Villa 1:3 #Bologna#AstonVilla #Football#EuropaLeague

AI match predictions

@ai_match_prediction · Post #11140 · 22.03.2026 г., 05:05

Spain La Liga🇪🇸 2026-03-22 13:00 UTC Barcelona vs. Rayo Vallecano Predicted outcome: Barcelona✅ Predicted score: 3:1 Actual: Barcelona 1:0 #Barcelona#RayoVallecano 2026-03-22 15:15 UTC Celta Vigo vs. Alaves Predicted outcome: Celta Vigo❌ Predicted score: 2:1 Actual: Alaves 3:4 #CeltaVigo#Alaves 2026-03-22 17:30 UTC Athletic Club vs. Real Betis Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Athletic Club 2:1 #AthleticClub#RealBetis 2026-03-22 20:00 UTC Real Madrid vs. Atletico Madrid Predicted outcome: Real Madrid✅ Predicted score: 2:1 Actual: Real Madrid 3:2 #RealMadrid#AtleticoMadrid #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11874 · 03.05.2026 г., 05:05

Spain La Liga🇪🇸 2026-05-03 12:00 UTC Celta Vigo vs. Elche Predicted outcome: Celta Vigo✅ Predicted score: 2:1 Actual: Celta Vigo 3:1 #CeltaVigo#Elche 2026-05-03 14:15 UTC Getafe vs. Rayo Vallecano Predicted outcome: Getafe❌ Predicted score: 1:0 Actual: Rayo Vallecano 0:2 #Getafe#RayoVallecano 2026-05-03 16:30 UTC Real Betis vs. Oviedo Predicted outcome: Real Betis✅ Predicted score: 2:1 Actual: Real Betis 3:0 #RealBetis#Oviedo 2026-05-03 19:00 UTC Espanyol vs. Real Madrid Predicted outcome: Real Madrid✅ Predicted score: 1:2 Actual: Real Madrid 0:2 #Espanyol#RealMadrid #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11456 · 12.04.2026 г., 05:05

Spain La Liga🇪🇸 2026-04-12 12:00 UTC Osasuna vs. Real Betis Predicted outcome: Osasuna❌ Predicted score: 2:1 Actual: Draw 1:1 #Osasuna#RealBetis 2026-04-12 14:15 UTC Mallorca vs. Rayo Vallecano Predicted outcome: Mallorca✅ Predicted score: 1:0 Actual: Mallorca 3:0 #Mallorca#RayoVallecano 2026-04-12 16:30 UTC Celta Vigo vs. Oviedo Predicted outcome: Celta Vigo❌ Predicted score: 2:1 Actual: Oviedo 0:3 #CeltaVigo#Oviedo 2026-04-12 19:00 UTC Athletic Club vs. Villarreal Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Villarreal 1:2 #AthleticClub#Villarreal #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11525 · 16.04.2026 г., 09:05

UEFA Europa League🌍 2026-04-16 16:45 UTC Celta Vigo vs. SC Freiburg Predicted outcome: Draw❌ Predicted score: 1:1 Actual: SC Freiburg 1:3 #CeltaVigo#Freiburg 2026-04-16 19:00 UTC Nottingham Forest vs. FC Porto Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Nottingham Forest 1:0 #NottinghamForest#Porto 2026-04-16 19:00 UTC Aston Villa vs. Bologna Predicted outcome: Aston Villa✅ Predicted score: 2:1 Actual: Aston Villa 4:0 #AstonVilla#Bologna 2026-04-16 19:00 UTC Real Betis vs. SC Braga Predicted outcome: Real Betis❌ Predicted score: 2:0 Actual: SC Braga 2:4 #RealBetis#Braga #Football#EuropaLeague

AI match predictions

@ai_match_prediction · Post #11747 · 26.04.2026 г., 09:05

Spain La Liga🇪🇸 2026-04-26 12:00 UTC Rayo Vallecano vs. Real Sociedad Predicted outcome: Rayo Vallecano❌ Predicted score: 2:1 Actual: Draw 3:3 #RayoVallecano#RealSociedad 2026-04-26 14:15 UTC Oviedo vs. Elche Predicted outcome: Elche✅ Predicted score: 1:2 Actual: Elche 1:2 #Oviedo#Elche 2026-04-26 16:30 UTC Osasuna vs. Sevilla Predicted outcome: Osasuna✅ Predicted score: 2:1 Actual: Osasuna 2:1 #Osasuna#Sevilla 2026-04-26 19:00 UTC Villarreal vs. Celta Vigo Predicted outcome: Villarreal✅ Predicted score: 2:1 Actual: Villarreal 2:1 #Villarreal#CeltaVigo #Football#SpainLaLiga

AI match predictions

@ai_match_prediction · Post #11309 · 05.04.2026 г., 05:05

Spain La Liga🇪🇸 2026-04-05 12:00 UTC Getafe vs. Athletic Club Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Getafe 2:0 #Getafe#AthleticClub 2026-04-05 14:15 UTC Valencia vs. Celta Vigo Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Celta Vigo 2:3 #Valencia#CeltaVigo 2026-04-05 16:30 UTC Oviedo vs. Sevilla Predicted outcome: Sevilla❌ Predicted score: 1:2 Actual: Oviedo 1:0 #Oviedo#Sevilla 2026-04-05 19:00 UTC Alaves vs. Osasuna Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 2:2 #Alaves#Osasuna #Football#SpainLaLiga