@sgmrt · Post #2473 · 01.09.2025 г., 01:19
[CCL] UPDATE: Train services between #Promenade and #MarinaBay have resumed their scheduled operations. Free regular bus services have ceased. - SMRT
Hashtags
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
Пребарај: #promenade
@sgmrt · Post #2473 · 01.09.2025 г., 01:19
[CCL] UPDATE: Train services between #Promenade and #MarinaBay have resumed their scheduled operations. Free regular bus services have ceased. - SMRT
Hashtags
@sgmrt · Post #2472 · 01.09.2025 г., 01:14
[CCL] UPDATE: Train services are progressively resuming their scheduled service between #Promenade and #MarinaBay. - SMRT
Hashtags
@sgmrt · Post #2471 · 01.09.2025 г., 01:04
[CCL] UPDATE: Due to a train fault, train service is expected to recover its scheduled service in 15 minutes between #Promenade and #MarinaBay. We apologise for any inconvenience caused. Please approach our station staff if you need further assistance. - SMRT
Hashtags
@sgmrt · Post #2470 · 01.09.2025 г., 00:54
[CCL] Update: Free regular bus services are available between #Promenade and #MarinaBay. You may download an e-Travel Chit as proof of your travel at https://bit.ly/39HsrAl if your journey has been affected. - SMRT
Hashtags
@sgmrt · Post #2468 · 01.09.2025 г., 00:49
[CCL]: Due to a train fault, there is no train service between #MarinaBay and #Promenade. Free regular bus services are available between #MarinaBay and #Promenade. https://bit.ly/3JHKRD2 - SMRT
Hashtags
@sgmrt · Post #1468 · 20.06.2022 г., 05:58
[CCL] UPDATE: Additional 10mins train travel time from #Promenade to #MarinaBay. We are working to recover service. - SMRT
Hashtags
@sgmrt · Post #2279 · 05.03.2025 г., 09:04
[CCL]: Train services have resumed to normalcy. Free regular bus services will cease between #Promenade and #Serangoon. We are sorry for affecting your commute. - SMRT
Hashtags
@sgmrt · Post #2274 · 05.03.2025 г., 08:14
[CCL]: Please add 30 mins train travel time between #Promenade and #Serangoon, in both directions due to train fault. Free regular bus service is available between #Promenade and #Serangoon. Train service is still available. - SMRT
Hashtags
@sgmrt · Post #2181 · 14.12.2024 г., 11:14
[CCL] UPDATE: Train fault cleared. Train service between #Promenade and #Serangoon is progressively returning to normal. Free regular bus service are still available between #Promenade and #Serangoon. - SMRT
Hashtags
@sgmrt · Post #2180 · 14.12.2024 г., 11:05
[CCL] UPDATE: Please add an additional 30mins train travel time between #Promenade and #Serangoon due to a train fault. Free regular bus service are available between #Promenade and #Serangoon. - SMRT
Hashtags
@sgmrt · Post #2179 · 14.12.2024 г., 10:49
[CCL] UPDATE: Additional 30mins train travel time between #Promenade and #Serangoon due to a train fault. Free regular bus service are available between #Promenade and #Serangoon. - SMRT
Hashtags
@sgmrt · Post #1424 · 01.04.2022 г., 04:26
[CCL] CLEARED: Fault cleared, trains service progressively resuming. Free regular bus and bridging bus services between #Promenade and #Serangoon are still available. - SMRT
Hashtags