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

Резултати

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

Пребарај: #amharic

当前筛选 #amharic清除筛选
Borkena

@borkena · Post #5268 · 16.11.2025 г., 18:47

Media, Translation, and Historical Accountability: The Case of the “Wax-and-Cloth Burning” Narrative in Key Anbessa (2025). Read more. https://borkena.com/2025/11/14/ethiopia-media-translation-and-historical-accountability-the-case-of-the-wax-and-cloth-burning-narrative-in-key-anbessa-2025/#Ethiopia#News#Amharic

Borkena

@borkena · Post #6044 · 18.03.2026 г., 15:20

25 የኢትዮጵያ ባንኮች የመፍረስ አደጋ ተጋርጦባቸዋል ፤ በደሴ ከተማ ለተሽከርካሪዎች የተላለው የሰዐት እላፊ እና ሌሎች ዜናዎች፡፡ ሙሉውን ከቻናላችን ያድምጡ፡፡ https://youtu.be/7C295S7INDs#Ethiopia#News#Amharic#Banks#NationalBank#EthiopianNews#ዜና

Borkena

@borkena · Post #6191 · 21.04.2026 г., 13:07

በሲቪል ሰርቪስ ከ150 በላይ የሀሰተኛ የትምርህርት ማስረጃ ተገኘ መባሉ ፤ በመንግስት ደጋፊነት የሚተቸው አብን መዋቅራዊ በደል ድርሷል ማለቱ እና ሌሎች ዜናዎች ፡፡ https://youtu.be/y4-9eSmywW8#Ethiopia#News#Amharic#EthiopianNews#fakecredential#education#NAMA

Addis Standard

@addisstandardeng · Post #21665 · 10.03.2026 г., 10:03

News: #Google Expands AI Search to 13 #African Languages, Including #Ethiopia’s Afaan Oromoo, Amharic, and Somali Google has expanded its artificial intelligence–powered search tools to support 13 African languages, including Ethiopian languages #Afaan_Oromoo, #Amharic, and #Somali, in a move aimed at widening access to digital services across the continent. The update introduces local language support for Google’s #AI search features, enabling users to interact with the platform using text, voice, or images in their preferred languages. The company said the expansion is intended to make AI tools more accessible to millions of African users who rely on local languages for everyday communication. In addition to Afaan Oromoo, Amharic, and Somali, the newly supported languages include Afrikaans, Akan, Hausa, Kinyarwanda, Kiswahili, Sesotho, Setswana, Wolof, Yorùbá, and isiZulu. Google...... https://web.facebook.com/AddisstandardEng/posts/pfbid0ZJge8GLSFrAuxUkYUJm28Q53sUEEFUKEM9bXhKBFhuZPueaGkzDN6p2vv5Bv1J2Bl