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

Резултати

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

Пребарај: #amal

当前筛选 #amal清除筛选
Addis Standard

@addisstandardeng · Post #21939 · 04.04.2026 г., 07:44

News: #National_Bank lists 23 unauthorized money transfer providers, warns public against use The National Bank of #Ethiopia (#NBE) has identified 23 unauthorized money transfer service providers and warned the public against engaging with them, according to a public notice issued on 3 April 2026. The central bank said it has updated and published a revised list of duly licensed money transfer agents authorized to operate in Ethiopia, urging the public to verify service providers through its official website. The entities listed as unauthorized include #Adulis Money Transfer, #Amal Express, #Bakaal Money Transfer, #Jubba Express, #Quick_Pay, #Redsea (USA), Tasa Pay. In late December 2025 Addis Standard reported that, the National Bank of Ethiopia (NBE) published an official list of more than 100 licensed money transfer agents and cautioned the public against using unlicensed remittance services. Read more: https://addisstandard.com/?p=56305

Ultimora.net - POLITICS

@ultimoraPOLITICS · Post #39558 · 16.05.2022 г., 18:18

#Elezioni#Libano 49 seggi assegnati su 128: Indipendenti: 10 seggi #Hezbollah|Islamici: 9 #LF|Destra cristiana: 9 #Amal|Centro-destra populista islamico: 8 #FPM|Grande tenda cristiana maronita: 6 #PSP|Centro-sinistra druso: 2 #Kataeb|Centro-destra cristiano maronita: 1 #ARF|Sinistra armena: 1 #UP|Nasseristi: 1 #PNO|Sinistra araba: 1 #NLP|Centro-destra cristiano maronita: 1 @UltimoraPolitics

Ultimora.net - POLITICS

@ultimoraPOLITICS · Post #39569 · 16.05.2022 г., 20:09

#Elezioni#Libano 78 seggi assegnati su 128: #LF|Destra cristiana: 16 seggi #FPM|Grande tenda cristiana maronita: 12 Indipendenti: 11 #Hezbollah|Islamici: 9 #Amal|Centro-destra populista islamico: 8 #PSP|Centro-sinistra druso: 6 #Kataeb|Centro-destra cristiano maronita: 5 #ARF|Sinistra armena: 3 #Taqaddm|Centro-sinistra: 2 #UP|Nasseristi: 1 #PNO|Sinistra araba: 1 #NLP|Centro-destra cristiano maronita: 1 #TW|Centro: 1 #Sabaa|Centro-sinistra: 1 #ReLebanon|Centro-destra: 1 @UltimoraPolitics

Ultimora.net - POLITICS

@ultimoraPOLITICS · Post #39571 · 16.05.2022 г., 21:55

#Elezioni#Libano 99 seggi assegnati su 128: Per coalizioni: Alleanza dell'8 marzo (#FPM-#Amal-#Hezbollah-#Marada-#ARF-#PNO-#UP-#Baath)|Grande tenda pro-Siria: 47 seggi Alleanza del 14 marzo (#LF-#Kataeb-#IM-#Taqaddm)|Grande tenda anti-Siria: 28 Indipendenti: 11 Altri (#PSP-#NLP-#TW-#Sabaa-#ReLebanon-#Osos): 11 @UltimoraPolitics

Ultimora.net - POLITICS

@ultimoraPOLITICS · Post #39570 · 16.05.2022 г., 21:40

#Elezioni#Libano 99 seggi assegnati su 128: #LF|Destra cristiana: 19 seggi #FPM|Grande tenda cristiana maronita: 14 #Amal|Centro-destra populista islamico: 13 Indipendenti: 13 #Hezbollah|Islamici: 12 #PSP|Centro-sinistra druso: 6 #Kataeb|Centro-destra cristiano maronita: 6 #ARF|Sinistra armena: 3 #Marada|Destra cristiana maronita: 2 #Taqaddm|Centro-sinistra: 2 #UP|Nasseristi: 1 #PNO|Sinistra araba: 1 #NLP|Centro-destra cristiano maronita: 1 #TW|Centro: 1 #Sabaa|Centro-sinistra: 1 #ReLebanon|Centro-destra: 1 #Baath|Neo-Ba'thisti: 1 #Osos|Centro: 1 #IM|Centro-destra sovranista secolare: 1 @UltimoraPolitics