@sgmrt · Post #1990 · 04.07.2024 г., 00:09
[EWL] CLEARED: Train svcs from #BoonLay to #Clementi have resumed. Free regular bus & free bridging bus svcs have ended. - SMRT
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #254 · 11 јун.
Тип строки в Python имеет очень много удобных методов. Сегодня пост про два таких метода которые чаще всего используются "однобоко". Это методы startswith() и endswith() Самый обычный сценарий использования — проверка, начинается ли строка с указанной подстроки? >>> "some_string".startswith("some") True И аналогичная ситуация с зеркальным вариантом этой функции, проверка совпадения с конца >>> "some_string".endswith("some") False Так они используются в большинстве случаев что я видел. Но у этих функций есть еще два варианта использования. 🔸Сравнение нескольких подстрок Для проверки нескольких подстрок в одной строке обычно вызывают эти функции несколько раз. Но на самом деле достаточно передать кортеж со всеми строками один раз. Если будет хоть одно совпадение то функция вернёт True. >>>"my_image.png".endswith(("jpg", "png", "exr")) True 🔸Диапазон поиска Вторым аргументом можно передать индекс символа с которого следует начать сравнение, а третий аргумент это индекс последнего символа. >>> ".filename.ext".startswith("file", 1) True >>> "file_###.ext".endswith('#', 0, -4) True Индексы можно указать отрицательными, что означает отсчёт с конца. #trics#basic
Пребарај: #clementi
@sgmrt · Post #1990 · 04.07.2024 г., 00:09
[EWL] CLEARED: Train svcs from #BoonLay to #Clementi have resumed. Free regular bus & free bridging bus svcs have ended. - SMRT
@sgmrt · Post #1989 · 04.07.2024 г., 00:04
[EWL] UPDATE: Fault on the EWL has cleared, train service has resumed. Free regular bus and bridging bus services are still available between #BoonLay & #Clementi. - SMRT
@sgmrt · Post #1988 · 03.07.2024 г., 23:54
[EWL] UPDATE: Fault on the EWL has cleared, train services are progressively returning to normal speed. Free regular bus & bridging bus services are still available between #BoonLay & #Clementi. - SMRT
@sgmrt · Post #1987 · 03.07.2024 г., 23:54
[EWL] UPDATE: Fault on the EWL has cleared, train services are progressively returning to normal. Free regular bus and bridging bus services are still available between #BoonLay and #Clementi. - SMRT
@sgmrt · Post #2409 · 05.08.2025 г., 22:05
[EWL]: Due to a track point fault, pls add 15mins train travel time from #BoonLay to #Clementi towards #PasirRis. - SMRT
@sgmrt · Post #1985 · 03.07.2024 г., 23:14
[EWL] UPDATE: Due to a track fault, pls add 30mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus & free bridging bus svcs are available btwn #BoonLay and #Clementi. - SMRT
@sgmrt · Post #1984 · 03.07.2024 г., 23:14
[EWL] UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus & bridging bus svcs are available btwn #BoonLay and #Clementi. - SMRT
@sgmrt · Post #1980 · 03.07.2024 г., 22:24
[EWL] UPDATE: Train svc is available from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs from #BoonLay to #Clementi. Our station staff will assist. - SMRT
@sgmrt · Post #1979 · 03.07.2024 г., 22:24
[EWL]: Due to a track fault, pls add 20mins train travel time from #BuonaVista to #Clementi towards #PasirRis. Free regular bus svcs from #BuonaVista to #Clementi. Our station staff will assist. - SMRT
Hashtags
@sgmrt · Post #1982 · 03.07.2024 г., 22:39
[EWL] UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs btwn #BoonLay and #Clementi. Passengers travelling towards city area, please and take North South Line towards #AngMoKio and #MarinaSouthPier. - SMRT
@sgmrt · Post #1981 · 03.07.2024 г., 22:34
[EWL]: UPDATE: Due to a track fault, pls add 20mins train travel time from #BoonLay to #Clementi towards #PasirRis. Free regular bus svcs from #BoonLay to #Clementi. Passengers travelling towards city area, please take North South Line towards #AngMoKio and #MarinaSouthPier. - SMRT
@sgmrt · Post #2293 · 04.04.2025 г., 05:34
[EWL]: Due to a track fault, please expect an additional 20mins of travelling time between #Queenstown and #BoonLay. Shuttle train are available between #Clementi and #JurongEast and #JurongEast and #Lakeside. Free regular bus is available between #BuonaVista and #BoonLay. - SMRT