TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 1 слични објави

Пребарај: #digitalgovernance

当前筛选 #digitalgovernance清除筛选
AI & Law

@ai_and_law · Post #546 · 10.04.2025 г., 07:04

🇪🇺📖Algorithmic Management in the EU: A Structural Shift in Labor Governance The European Commission’s Directorate-General for Employment has released a study on algorithmic management (AM), offering the most comprehensive analysis to date of how digital systems are transforming workforce governance. Covering everything from recruitment and task allocation to performance evaluation and contract termination, the study shows that around 25% of EU enterprises — especially large private companies — are already using AM tools, with adoption expected to rise by 3–6% annually over the next decade. This multi-year research project, developed with input from social partners, academics, and industry leaders, highlights both operational efficiencies and significant legal and ethical challenges. Among them: threats to worker privacy, diminished autonomy, lack of transparency, and deskilling. While current EU legislation — including GDPR and anti-discrimination directives — offers partial coverage, the study identifies critical regulatory gaps. As algorithmic oversight becomes embedded in everyday management, the findings make one thing clear: governance must evolve just as fast as the technology it aims to regulate. #AIandLaw#EURegulation#DigitalGovernance