@NEASingapore · Post #146 · 07.01.2021 г., 02:00
Leaving your soiled tissue on dining tables is inconsiderate and unsanitary! Dispose of them properly, to help prevent the spread of diseases. #SGUnited#BinOurTissues#KeepSGClean
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
Пребарај: #binourtissues
@NEASingapore · Post #146 · 07.01.2021 г., 02:00
Leaving your soiled tissue on dining tables is inconsiderate and unsanitary! Dispose of them properly, to help prevent the spread of diseases. #SGUnited#BinOurTissues#KeepSGClean
@NEASingapore · Post #154 · 22.01.2021 г., 10:50
Have you been returning your trays and binning used tissues? A large majority of people surveyed agreed that litter left behind poses a public health risk. However, whilst 90% felt that diners should clear their tables after eating at public dining places, the average tray return rate at most hawker centres is only around 30%. View key findings of the survey at https://www.nea.gov.sg/media/news/news/index/vast-majority-surveyed-feel-that-patrons-should-be-required-to-clear-their-tables-after-eating-at-public-dining-places We can do more to keep #OurHawkerCentres clean and safe for everyone! #ReturnOurTrays#BinOurTissues
@NEASingapore · Post #144 · 28.12.2020 г., 05:22
Phase 3 of Re-opening commences today. To accommodate the increase in group size of up to 8 persons, markings on seats and tables at the dining areas of hawker centres have been revised. While we bond over our favourite hawker food, let’s also #ReturnOurTrays and #BinOurTissues. #OurHawkerCulture is not just about the heritage, great food and bustling ambience – it is also about how it brings people from all walks of life together. Let’s keep #OurHawkerCentres clean and safe for everyone 😊 Access control and interim fencing at more markets will also be removed, details at https://www.nea.gov.sg/media/news/news/index/phase-3-of-re-opening-hawker-centres-and-markets
@NEASingapore · Post #69 · 20.06.2020 г., 03:30
We are all looking forward to dining in again at our favourite places. Let’s not forget good dining habits at #OurHawkerCentres to mitigate the spread of COVID-19! #BinOurTissues & #ReturnOurTrays, to keep the table clean for the next user and reduce the risk of disease transmission to cleaners and other members of the public. Eat from your tray, and don’t leave behind soiled tissues or wet wipes on dining tables. #FightCOVID19#SGClean
@NEASingapore · Post #67 · 17.06.2020 г., 12:55
Don’t leave your used tissues or wet wipes behind when dining at #OurHawkerCentres! It is important to dispose of used tissues or wet wipes which can be highly contaminated, to #FightCOVID19, especially as we resume our activities gradually. From 19 Jun when dining-in resumes, Safe Distancing Ambassadors at hawker centres and coffeeshops will be on hand to remind patrons to be socially responsible and observe personal hygiene. Let’s all do our part to keep ourselves and those around us safe. https://go.gov.sg/nea17jun20-hygieneathcs-toilets #BinOurTissues#ReturnOurTrays#SGClean#KeepSGClean
@NEASingapore · Post #73 · 02.07.2020 г., 00:30
Let’s remember to stay at least a metre apart from each other. We wouldn’t want all the effort and resources of the past few months to go to waste. Dining in at #OurHawkerCentres? Let’s not forget to #ReturnOurTrays and #BinOurTissues after enjoying the meal! #SGUnited#SafeDistancing#FightCOVID19