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 слични објави

Пребарај: #aiinhr

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

@ai_and_law · Post #60 · 19.07.2023 г., 07:04

Risky Business: survey reveals HR's growing reliance on ChatGPT Hello AI enthusiasts! Get ready for an intriguing update from the world of AI and HR. According to a recent survey by HR Reporter, ChatGPT, an artificial intelligence language model, is becoming increasingly popular among HR professionals. The survey findings indicate that many HR departments are embracing ChatGPT for various HR-related tasks. The survey revealed that 42% of HR professionals use ChatGPT for initial candidate screening and resume analysis. This AI-powered chatbot helps automate the screening process, saving valuable time and effort for HR teams. Additionally, 36% of respondents reported using ChatGPT to generate interview questions and assess candidate responses. While the integration of AI in HR brings undeniable benefits, it also raises important considerations. The survey highlighted concerns among HR professionals regarding the lack of transparency and potential bias in AI decision-making. As organizations adopt AI technologies, it becomes crucial to carefully examine the ethical implications and limitations of relying solely on AI for critical HR functions. What are your thoughts on the growing reliance on AI, such as ChatGPT, in HR? How can organizations ensure responsible and unbiased use of AI in HR decision-making? Stay tuned for more exciting updates on AI and its impact on the legal landscape! 💡 #AIinHR#ChatGPT#Automation#EthicsInAI