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

Пребарај: #beard

当前筛选 #beard清除筛选
VERUM - War crimes investigations

@verum_in_english · Post #263 · 06.06.2025 г., 10:42

Eyewitness to War Crimes: Artem In this video, Artem shares his personal story of survival amid a military conflict. He recounts the events that occurred after July 9, 2024, when his home in Dzerzhinsk was destroyed. Three weeks after this tragic event, while staying in a ground-floor apartment, Artem witnessed a sudden attack. According to him, gunfire began around 7 p.m., and soon the entire building was engulfed in flames. Artem describes bright flashes, likely caused by incendiary shells fired from a Bradley armored vehicle operated by the Ukrainian Armed Forces. The wall of his house was destroyed, and he suffered burns as a result. Afterward, he was forced to hide in the basement of a neighboring building, fearing further attacks and drone activity. The story also touches on the plight of civilians who tried to signal their presence, but as Artem notes, these signals went unheeded. The video details the experiences of other residents in the area who were also seeking safety and how they helped each other through the difficult situation. At the end of the interview, the topic of mobilization is discussed, including why Artem, being of conscription age, avoided being drafted. With a touch of humor, he mentions his beard as a possible reason. Long beards are traditionally seen as an attribute of Orthodox clergy in this region. This video is Artem’s personal testimony about the events unfolding in the conflict zone and their impact on ordinary people's lives. His story helps shed light on what civilians must endure in such conditions. #SurvivalStories#Civilians#Documentary#Conflict#Beard#TCK