@keyframepro · Post #38 · 10.06.2025 г., 12:45
Kasperskiy - Threat management and defense #3d#cg#commercial#coproduction#it#kasperskiy
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
Пребарај: #kasperskiy
@keyframepro · Post #38 · 10.06.2025 г., 12:45
Kasperskiy - Threat management and defense #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #21 · 10.06.2025 г., 11:55
Kasperskiy - Endpoint Security #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #19 · 10.06.2025 г., 11:55
Kasperskiy - Threat Intelligence #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #18 · 10.06.2025 г., 11:54
Kasperskiy - GREAT #3d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #22 · 10.06.2025 г., 11:57
Kasperskiy - Cloud Security #3d#2d#cg#commercial#coproduction#it#kasperskiy
@keyframepro · Post #23 · 10.06.2025 г., 11:58
Kasperskiy - Internet of things #2d#cg#commercial#coproduction#humor#it#kasperskiy
@keyframepro · Post #20 · 10.06.2025 г., 11:55
Kasperskiy - Fraud Prevention Series #3d#2d#cg#commercial#coproduction#humor#it#kasperskiy
@keyframepro · Post #35 · 10.06.2025 г., 12:26
👓 Привет! Hello! Меня зовут Максим Слюсарев. My name is Maxim Sliussarev. 😠Я режиссёр, продюсер и сценарист. А это мой креативный бутик Keyframe Production. Представленные ролики все придуманы мною и реализованы либо мной лично, либо в сотрудничестве с другими студиями. На всех из них я выступал сценаристом и режиссёром, а на многих продюсером, монтажером и даже художником графики. За годы работы я стал обладателем множества призов, как за музыкальные клипы, так и за рекламу и кино, а в 25 году и за ии-кино. 🐈⬛ I’m a director, producer, and screenwriter. This is my creative boutique — Keyframe Production. All the featured videos were conceived by me and brought to life either personally or in collaboration with other studios. I worked as the screenwriter and director on all of them, and on many — also as producer, editor, and even graphic artist. Over the years, I have won many prizes, both for music videos, as well as for advertising and cinema, and in 2025 for AI-films. 😂Пишите в телегу @maximixam или [email protected] 😱Contact me via telegram @maximixam or [email protected] По хештегам вы можете найти работы во всех сферах видеопроизводства от съемки до ии: You can find projects from all areas of video production by following the hashtags: #ai#bank#cars#cg#commercial#documentary#deepfake#drama#exhibition#fashion#film#humor#interactive#it#kasperskiy#kids#mecha#microsoft#musicvideo#social#shortfilm#show#sounddesing#showreel#space#sport#tvseries#videoproduction#2d#3d