@sgmrt · Post #2330 · 23.04.2025 г., 01:09
[EWL] CLEARED: Train service between #Tampines and #PasirRis have resumed. Free regular bus service ceased. - SMRT
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
Пребарај: #pasirris
@sgmrt · Post #2330 · 23.04.2025 г., 01:09
[EWL] CLEARED: Train service between #Tampines and #PasirRis have resumed. Free regular bus service ceased. - SMRT
@sgmrt · Post #2329 · 23.04.2025 г., 00:59
[EWL] UPDATE: Fault cleared. Train service resumed. Free regular bus service is still available between #Tampines and #PasirRis. - SMRT
@sgmrt · Post #2325 · 23.04.2025 г., 00:09
[EWL] UPDATE: Please add 10 mins train travel time between #Tampines and #PasirRis, in both directions due to track point fault. Free regular bus and shuttle train services are available between #Tampines and #PasirRis. Normal train service is available for the rest of East West - SMRT
@sgmrt · Post #2324 · 22.04.2025 г., 23:44
[EWL] UPDATE: Please add 10 mins train travel time between #Tampines and #PasirRis, in both directions due to track point fault. Free regular bus services are available between #Tampines and #PasirRis. Shuttle train service is also available between #Tampines and #PasirRis. Train - SMRT
@sgmrt · Post #2323 · 22.04.2025 г., 23:29
[EWL]: Pls add an additional 10 mins of travelling time between #Tampines and #PasirRis. The eastbound train will turn around at #Tampines towards westbound. Free regular bus services are available between #Tampines and #PasirRis. Shuttle train service is also available between - SMRT
@sgmrt · Post #2322 · 22.04.2025 г., 23:29
[EWL]: Pls add an additional 10 mins of travelling time between #Tampines and #PasirRis. The eastbound train will turn around at #Tampines towards westbound. Free regular bus services are available between #Tampines and #PasirRis. Shuttle train service is also available between https://bit.ly/4jEYkYR - SMRT
@sgmrt · Post #2321 · 22.04.2025 г., 23:24
[EWL] UPDATE: Train svc is available btwn #Tampines and #PasirRis. Please add 10 mins train travel time from Tampines to Pasir Ris, towards Pasir Ris due to track point fault. Free regular bus service is available between Tampines and Pasir Ris. - SMRT
@sgmrt · Post #2320 · 22.04.2025 г., 22:59
[EWL]: Due to a track point fault, pls add additional 10mins train travel time between #Tampines and #PasirRis. Free regular bus service is available between #Tampines and #PasirRis. - SMRT
@sgmrt · Post #2497 · 16.09.2025 г., 16:54
[EWL] UPDATE: Our station staff are assisting the last bridging bus passengers to transfer to the last train at #TanahMerah towards #PasirRis station. - SMRT
Hashtags
@sgmrt · Post #2421 · 06.08.2025 г., 00:59
[EWL] UPDATE: Due to a track point fault, please add additional 25mins train travelling time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus and bridging bus services are available between #BoonLay and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2415 · 05.08.2025 г., 23:39
[EWL] UPDATE: Due to a track point fault, please add additional 25mins train travelling time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus & bridging bus services are available between #BoonLay and #BuonaVista. - SMRT
Hashtags
@sgmrt · Post #2413 · 05.08.2025 г., 23:19
[EWL] UPDATE: Due to a track point fault, pls add 25mins train travel time from #BoonLay to #BuonaVista towards #PasirRis. Free regular bus & free bridging bus svcs between #BoonLay and #BuonaVista. - SMRT
Hashtags