@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 #281 · 18 авг.
Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳 Действительно, что означают цифры которые мы получили в прошлом посте? Это кодировка, заключающая в себе режимы доступа к файлу. Подробней можно почитать в статье про chmod. Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение. Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция >>> stat.filemode(0o755) '?rwxr-xr-x' Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров. А что за знак вопроса в начале? Давайте передадим в эту функцию необрезанное значение от os.stat >>> stat.filemode(os.stat(path).st_mode) 'drwxr-xr-x' Это данные, которые мы безжалостно обрезали в прошлый раз😼 Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l). Вот простая схема данной кодировки [1][3][3][3] │ │ │ │ │ │ │ └──> Others Permissions │ │ └─────> Group Permissions │ └────────> Owner Permissions └───────────> File Type (разверните экран если вы с телефона) Если вы попробуете получить пермишены для симлинка то получите пермишены для файла >>> path = '.venv/bin/python3' >>> stat.filemode(os.stat(path).st_mode) '-rwxr-xr-x' Чтобы получить свойства именно симлинка, нужно это явно указать >>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode) 'lrwxrwxrwx' #tricks#basic
Пребарај: #marinabay
@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
@URASingapore · Post #910 · 24.07.2024 г., 10:00
Singapore’s hot weather can be a bother if you take a stroll at Marina Bay. But with our solar-powered breeze shelters strategically placed along the promenade, you don’t need no Oppas to shelter you from the heat! 🌬 #UrbanDesign#DiscoverSingapore#MarinaBay
@sgmrt · Post #1894 · 22.03.2024 г., 02:35
[CCL] UPDATE: Normal train service has resumed. Free regular bus service between #PayaLebar and #DhobyGhaut / #MarinaBay has ceased. - SMRT
Hashtags
@sgmrt · Post #1893 · 22.03.2024 г., 02:19
[CCL] UPDATE: Additional 20 mins train travel time from #PayaLebar to #DhobyGhaut / #MarinaBay, due to a train fault. Free regular bus service is available between #PayaLebar and #DhobyGhaut / #MarinaBay. - SMRT
Hashtags
@sgmrt · Post #1892 · 22.03.2024 г., 01:55
[CCL] UPDATE: Additional 30 mins train travel time from #PayaLebar to #DhobyGhaut / #MarinaBay, due to a train fault. Free regular bus service are available between #PayaLebar and #DhobyGhaut / #MarinaBay. - SMRT
Hashtags
@sgmrt · Post #1884 · 08.02.2024 г., 03:14
[CCL] UPDATE: Due to a signal fault, please add additional 20 minutes travel time between #DhobyGhaut, #MarinaBay and #PayaLebar. Free regular bus services are available between #DhobyGhaut, #MarinaBay and #PayaLebar. - SMRT
Hashtags
@sgmrt · Post #1883 · 08.02.2024 г., 02:19
[CCL] UPDATE: Due to a signal fault, please add additional 15 minutes travel time between #DhobyGhaut, #MarinaBay and #PayaLebar. Free regular bus services are available between #DhobyGhaut, #MarinaBay and #PayaLebar. - SMRT
Hashtags