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

Пребарај: #uscongress

当前筛选 #uscongress清除筛选
EdgeMarket.AI 📣

@edgemarketai · Post #8180 · 12.05.2026 г., 17:31

🇺🇸 US Congress vs Trump’s $1.5 Trillion Defence Budget The market is live on EdgeMarket. Participants are now predicting whether Congress will approve the proposed historic defence expansion package covering: ✈️ Advanced fighter programs 🚢 Naval expansion 🛰 Defence technology 🤖 AI warfare systems 🛡 National security infrastructure Current Market Sentiment: ✅ YES — 61% ❌ NO — 39% Take your position now: https://edgemarket.ai/bnb/social-media/us-congress-aproval-of-trumps-15-trillion-defence-budget/statistics/69f4861273c4a76eb0961b8f Predict. Stake. Settle. #EdgeMarket#USCongress#Trump#Defence#PredictionMarkets#Web3

Crypto M - Crypto News

@CryptoM · Post #64636 · 09.04.2026 г., 12:15

🚀 U.S. Congress Nears Decision on Financial Framework Legislation The U.S. Congress is approaching a significant milestone in its efforts to establish a framework for the future development of the financial industry. According to BlockBeats, U.S. Treasury Secretary Besent announced on April 9 that Congress has spent nearly five years working on this initiative. It is now time for Senate Banking Committee Republicans to review and advance the CLARITY Act for U.S. President Donald Trump's signature. #USCongress#FinancialLegislation#CLARITYAct#Finance#USPolitics#Treasury#BankingCommittee

Crypto M - Crypto News

@CryptoM · Post #64503 · 09.04.2026 г., 04:05

🚀 U.S. Treasury Secretary Urges Congress to Pass CLARITY Act for Digital Asset Regulation U.S. Treasury Secretary Besant has called on Congress to swiftly pass the CLARITY Act to establish a clear regulatory framework for digital assets. According to Foresight News, the global market value of digital assets has fluctuated between $2 trillion and $3 trillion over the past year, with approximately one-sixth of Americans holding some form of digital asset. The application of blockchain technology in payments, settlements, and physical asset exchanges continues to expand. Cryptocurrencies are no longer niche experiments but are widely adopted technologies globally. The United States must take proactive measures to continue leading in the establishment of rules in this field. #DigitalAssets#Cryptocurrency#Blockchain#USTreasury#CLARITYAct#Regulation#Finance#USCongress#GlobalMarket#Technology