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

Резултати

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

Пребарај: #financetechnology

当前筛选 #financetechnology清除筛选
Crypto M - Crypto News

@CryptoM · Post #64464 · 09.04.2026 г., 01:17

🚀 CZ: Crypto vs Traditional Finance Is a False Divide — 'It's Just a New Technology for Finance' Speaking on The Wolf of All Streets Podcast, Binance founder Changpeng Zhao (CZ) revealed that he shared his memoir Freedom of Money with BlackRock CEO Larry Fink and obtained a quote from him, praising Fink as an example of someone who publicly changed his mind on Bitcoin and pushed it hard afterwards. CZ said he views the framing of crypto versus traditional finance as a false dichotomy — crypto is simply a new technology for finance, and convergence between the two is inevitable, with tokenization of real-world assets as a key driver. On access, CZ argued that any person anywhere in the world should be able to buy any listed stock, calling current restrictions an anomaly that blockchain can help resolve. CZ said the "72 principles" attributed to him online were counted by a Chinese KOL on X, not by him; he removed numbered headings intentionally. He said the principles blog began after a meeting with Ray Dalio in 2021 or 2022, during which Dalio encouraged him to write down his decision-making principles, and it is included as an appendix in Freedom of Money. #Crypto#TraditionalFinance#Blockchain#Tokenization#FinanceTechnology#GlobalFinance#Binance#CZ#LarryFink#RayDalio#BNB#BTC

Venture Village Wall 🦄

@venturevillagewall · Post #4084 · 06.02.2025 г., 16:00

Ondo Finance Launches Layer 1 Blockchain Ondo Finance has officially unveiled the Ondo Chain, a new Layer 1 blockchain designed to facilitate financial markets at an institutional level. This initiative aims to enhance the tokenization of real-world assets, leveraging Blockchain technology to streamline future financial transactions. More details available here. #OndoFinance#Blockchain#RWA#Finance#Crypto#DeFi#InstitutionalFinance#Tokenization#RealWorldAssets#Layer1#CryptoNews#USDC#Innovation#TechNews#Investment#MarketUpdates#Tokenomics#FinanceTechnology#FinancialMarkets#Community