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

Резултати

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

Пребарај: #elections2024

当前筛选 #elections2024清除筛选
Venezuelanalysis

@venanalysis · Post #1745 · 15.09.2024 г., 23:07

The Venezuelanalysis podcast returns! After a short hiatus, we're back with a new format! VA staff is set to feature more prominently and we'll publish on video as well. In this episode, host José Luis Granados Ceja and editor Ricardo Vaz break down the electoral aftermath in Venezuela. Follow this link for early access: https://www.patreon.com/posts/112126008 #Venezuela#Podcast#Elections2024

Venezuelanalysis

@venanalysis · Post #1627 · 01.07.2024 г., 15:45

Venezuelanalysis columnist Clodovaldo Hernández offers a deep dive into the complexities and uncertainties surrounding Venezuela's July 28 presidential elections. He tackles Maduro's prospects and challenges, as well as those of the US-backed opposition. Read the column: https://venezuelanalysis.com/analysis/july-28-an-equation-with-multiple-unknowns/ #Venezuela#Elections2024#Democracy

Venezuelanalysis

@venanalysis · Post #1720 · 15.08.2024 г., 23:39

The four-person UN panel said that the lack of detailed results had a “negative impact on confidence in the [electoral] outcome” announced by the CNE. The electoral body accused the UN team of violating its agreement and carrying forward a "political agenda." Read the report: https://venezuelanalysis.com/news/venezuela-electoral-authorities-reject-un-experts-report-for-political-agenda/ #Venezuela#Elections2024#UnitedNations

Venezuelanalysis

@venanalysis · Post #1703 · 31.07.2024 г., 03:18

The Venezuelanalysis team held a livestream on Tuesday evening to provide an on-the-ground update of the situation in Venezuela following Sunday's elections. Watch the video: https://venezuelanalysis.com/video/venezuelas-post-election-scene-on-the-ground-reports/ #Venezuela#Chavismo#Elections2024

Venezuelanalysis

@venanalysis · Post #1710 · 06.08.2024 г., 03:38

Chavista analyst and activist Luigino Bracci talked to computing expert Victor Theoktisto to address open questions surrounding the July 28 elections. “The opposition must challenge the results before the TSJ, not in public opinion or international media,” stated the professor. Read the article: https://venezuelanalysis.com/analysis/cybersecurity-expert-on-fraud-claims-and-voting-safeguards-in-venezuelas-presidential-election/ #Venezuela#Elections2024#cybersecurity

Venezuelanalysis

@venanalysis · Post #1709 · 04.08.2024 г., 23:46

Venezuelan President Nicolás Maduro said authorities had neutralized a “fascist outbreak” following last Sunday's elections. Check out a gallery of yesterday's rallies: https://venezuelanalysis.com/images/venezuela-government-opposition-supporters-take-to-the-streets-in-post-electoral-scene/ #Venezuela#Elections2024#Demonstration

Venezuelanalysis

@venanalysis · Post #1707 · 03.08.2024 г., 13:35

Chavismo and the US-backed opposition are mobilizing this Saturday after updated electoral results continue favoring President Maduro. Meanwhile, the Venezuelan Supreme Court demanded that candidates and the electoral body submit evidence in order to review the vote results. Read the full story: https://venezuelanalysis.com/news/venezuela-cne-ratifies-maduro-victory-supreme-court-demands-voting-records-and-hacking-evidence/ #Venezuela#SupremeCourt#Elections2024

Venezuelanalysis

@venanalysis · Post #1633 · 06.07.2024 г., 18:37

Incumbent Nicolás Maduro and opposition challenger Edmundo González saw supporters come out en masse in Caracas as the campaign officially began ahead of the July 28 presidential vote. There are 10 candidates running. Both Maduro and González have expressed confidence in victory. Report + photos: https://venezuelanalysis.com/images/venezuela-presidential-campaign-kicks-off-with-massive-rallies/ #Venezuela#Elections2024#CampaignTrail

EmbajadaRusaVen

@embajadarusaven · Post #1452 · 15.03.2024 г., 16:24

⚡️Arrancan las #elecciones presidenciales en #Rusia Por primera vez se celebran durante tres días de acuerdo con las peticiones de los ciudadanos, según informó anteriormente Ella Pamfilova, presidenta de la Comisión Electoral Central (CEC). En las actuales elecciones presidenciales se utilizará activamente el voto electrónico a distancia: según la CEC, unos 5 millones de ciudadanos rusos van a votar por Internet, por lo que se ha prestado especial atención a la ciberseguridad. ✔️ Por primera vez, los residentes de nuevas regiones del país votarán en las elecciones presidenciales. ⚡️Las primeras estadísticas estarán disponibles a partir del 17 de marzo. #Elections2024#VoteForRussia

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