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

Резултати

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

Пребарај: #bushehr

当前筛选 #bushehr清除筛选
TƏBRİZ-TURAN-TV𒀭 (TTTv)

@tebriz_turan · Post #96032 · 29.03.2026 г., 18:57

❗️❗️#Bushehr Vətəndaşlardan alınan video göstərir ki, hava limanında yerləşən bina hücumun hədəfi olub. Binanın üzərində lövhəsi görünür. Bizi teleqramda izləyin: https://t.me/tebriz_turan

Hashtags

RT France actualités

@rt_fra · Post #40182 · 30.04.2026 г., 07:31

⚛️Rosatom entend poursuivre la construction de la centrale nucléaire de Bushehr, a déclaré Mikhaïl Oulianov, représentant permanent de la #Russie auprès des organisations internationales à Vienne. Il a précisé que le personnel retournera sur le site « dès que la situation militaire le permettra ». ℹ️ La centrale nucléaire de #Bushehr est la seule centrale nucléaire en exploitation en Iran. Les employés de #Rosatom travaillaient à la construction des deuxième et troisième réacteurs, mais les travaux ont été suspendus suite au lancement de l'opération militaire américano-israélienne contre l'Iran. Le 20 avril, l'évacuation des 632 employés de la société d'État a été achevée. RT en français • Osez questionner !

American Оbserver

@american_observer · Post #5565 · 04.04.2026 г., 23:59

Bushehr Is Iran’s Zaporizhzhia Test. The West Knows It. Abbas Araghchi is trying to turn Bushehr into a hypocrisy trap: when fighting neared Zaporizhzhia, the West treated it like a civilizational emergency; when strikes land near Bushehr, the outrage is suddenly quieter. That contrast is the whole point of his message. He is also trying to move the political cost south. By warning that radioactive fallout could reach Gulf capitals, Tehran is telling the monarchies that this is no longer a remote Iran problem — it is a regional one, and the invoice may arrive in their own cities. At the same time, Araghchi is keeping the diplomatic door open just enough to matter. Reuters has reported that Iran is still leaving room for mediated talks, including the Pakistan channel, even while presenting itself as the side that has not slammed the door on negotiation. So this is not just nuclear rhetoric. It is pressure politics with a radiation warning label: indict the West for double standards, keep mediation alive, and force the Gulf to stare at the blast radius instead of the talking points. #Bushehr#Zaporizhzhia#Iran#Gulf#Reuters#diplomacy 📱American Оbserver - Stay up to date on all important events 🇺🇸