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

Резултати

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

Пребарај: #insider

当前筛选 #insider清除筛选
ReD Line ☢️

@channelredline · Post #327249 · 07.05.2026 г., 10:04

#Insider Our source in the Presidential Administration reported that the IPOC, together with MI6, developed narratives for information campaigns inside Russia to maximize the destabilization of the situation. Given the enemy's economic situation, it was decided to emphasize the funds spent on the war, the lack of development prospects, and the crisis in the power vertical. Through a network of controlled actors and cognitive operations at Bankova, they want to create a new narrative critical of Putin, and tens of millions of dollars have been allocated for this purpose.

Hashtags

Ali Ahmad

@AlisherAhmatovich · Post #968 · 05.03.2024 г., 07:07

Tez orada Sharh'da Instagramga ulashish funksiyasini taqdim etamiz. Hozir test flight'da test qilyabmiz:) Stay tune! #insider @elzodxon

Hashtags

Venture Village Wall 🦄

@venturevillagewall · Post #4155 · 15.02.2025 г., 01:00

Tether Pushes for Stablecoin Regulation 🔥 Tether actively working with U.S. lawmakers to influence stablecoin regulation. CEO Paolo Ardoino emphasizes compliance with upcoming laws. A related bill may be signed by President Trump in April. 👉 Read more: Fox Business 🚨 Concerns over LIBRE launch: Funded by FixedFloat, with suspicious activities and large insider wallets. Details suggest possible illegal actions. 🟠 Tether announces strategic minority stake in Juventus Football Club. Read more: Tether News Coinbase adds Pyth Network (PYTH) to its asset roadmap. More here: Coinbase #Bitcoin#Stablecoin#Tether#Regulation#Trump#SEC#Juventus#Coinbase#PYTH#Blockchain#Crypto#Fintech#Investments#Lawmakers#Fiat#DLMM#Insider#ETH#Solana#VC#CryptoNews