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

Резултати

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

Пребарај: #croatia

当前筛选 #croatia清除筛选
International Geographic

@internationalgeographic · Post #5809 · 09.07.2025 г., 10:45

Rovinj, #Croatia🇭🇷 Rovinj interestingly combines rich traditions and modernity, provincial charm and resort status. This city is still a fishing port, so seafood here is the freshest and tastiest.

Hashtags

International Geographic

@internationalgeographic · Post #5673 · 12.05.2025 г., 12:32

Sibenik, #Croatia Sibenik is the only Croatian city and certainly one of several in the world that boasts of having two UNESCO monuments: St. James Cathedral and the fortress.

Hashtags

POPULAR FRONT

@popularxfront · Post #5358 · 10.03.2026 г., 14:06

🇭🇷#Croatia: Croatia has reintroduced compulsory military service after nearly 20 years. Hundreds of young Croatians have reported for duty, with the first 800 conscripts beginning their two-month basic training at three barracks across the country: Knin, Slunj, and Požega. Under the new system, up to 4,000 young men will be called up each year for short-term training. Croatian General Kundid said the program will be “very dynamic and very interesting” for conscripts. Training will include traditional military skills as well as modern capabilities such as basic drone operation, drone defence, and cyberwarfare techniques and countermeasures. (via @balkanspectator & BBC)

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1177 · 27.11.2024 г., 14:15

🗺 CROATIA 🇭🇷 A beautiful morning in the town of Rovinj🤩 The historic center of Rovinj is located on a peninsula shaped like a drop. The cathedral is located in the center. Rovinj interestingly combines rich traditions and modernity, provincial charm, and resort status. This town is still a fishing port, so the seafood here is the freshest and tastiest. #Croatia @voyage

Hashtags

Voyage.Travel.Tourism

@VOYAGE · Post #1072 · 25.08.2024 г., 12:14

🗺 Croatia 🇭🇷 A beautiful morning in the town of Rovinj🤩 The historic center of Rovinj is located on a peninsula shaped like a drop. The cathedral is located in the center. Rovinj interestingly combines rich traditions and modernity, provincial charm, and resort status. This town is still a fishing port, so the seafood here is the freshest and tastiest. #Croatia @voyage

Hashtags

Tibicen

@world_music_geek · Post #764 · 29.09.2024 г., 08:25

Branko Mataja — Traditional And Folk Songs Of Yugoslavia (Essar Records, 1974) #guitar#Serbia#Croatia#Yugoslavia Свой единственный альбом с гитарными интерпретациями народной музыки Югославии Бранко Матая записал у себя дома. Все композиции он исполнил самостоятельно на модифицированной им самим же гитаре. Поэтому «Традиционные и народные песни Югославии» звучат скорее не как урок истории народной музыки родины Матаи, а как интимное, личное общение между исполнителем и слушателем. Коллекция гитарных медитаций Бранко Матая оставалась в безвестности, пока не была вновь открыта в начале 2000-х. В 2022 году альбом перевыпустил лейбл Numero Group. 🔗Spotify | AppleMusic | Bandcamp

🇰🇬🇭🇷 В рамках официального визита Министра иностранных и европейских дел Республики ХорватияГордана Грлич Радмана в Кыргызскую Республику 12 декабря 2024 года состоялись его переговоры в узком и расширенном составе с Министром иностранных дел Кыргызской РеспубликиЖээнбеком Кулубаевым. ▶️Толук маалымат/Подробнее: mfa.gov.kg #МИДКР#ТИМ#Kyrgyz_MFA#Kyrgyzstan#Croatia

AI match predictions

@ai_match_prediction · Post #11231 · 31.03.2026 г., 17:05

Friendlies🏳 2026-03-31 23:00 UTC USA vs. Portugal Predicted outcome: USA❌ Predicted score: 3:2 Actual: Portugal 0:2 #USA#Portugal 2026-03-31 23:30 UTC Argentina vs. Zambia Predicted outcome: Argentina✅ Predicted score: 2:0 Actual: Argentina 5:0 #Argentina#Zambia 2026-04-01 00:00 UTC Brazil vs. Croatia Predicted outcome: Brazil✅ Predicted score: 2:1 Actual: Brazil 3:1 #Brazil#Croatia 2026-04-01 01:00 UTC Mexico vs. Belgium Predicted outcome: Belgium❌ Predicted score: 1:3 Actual: Draw 1:1 #Mexico#Belgium #Football#Friendlies

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