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

Резултати

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

Пребарај: #goldprice

当前筛选 #goldprice清除筛选
FXStreet Crypto News

@fxstreetcrypto · Post #53473 · 23.03.2026 г., 13:39

🎲What if Gold is no longer the safe haven you think it is? Geopolitical storm brewing 🌩 US vs Iran. Strait of Hormuz. Oil surging. Inflation creeping back. And markets? Cracking. 📉 S&P 500: 4 losing weeks straight 🥈Silver -10% and falling ₿ BTC under $70K | $300M wiped in a day 🥇Gold breaking support, $3,870 in sight? The FXStreet team breaks it ALL down. Levels, catalysts, what comes next. 🔍 👉Watch before the next move happens. https://www.youtube.com/watch?v=rjhGCvZ95QI #GoldPrice#MarketAnalysis#GeopoliticsNews

Crypto M - Crypto News

@CryptoM · Post #64929 · 10.04.2026 г., 10:26

🚀 PRECIOUS METALS | Long-Term Gold Rebound Anticipated Amid Middle East Conflict Gold is expected to experience a long-term rebound despite the current market disruptions caused by the Middle East conflict, according to financial institutions such as ANZ Banking Group and Goldman Sachs. Bloomberg posted on X, highlighting that these banks foresee a recovery in gold prices as geopolitical tensions continue to influence market dynamics. The ongoing conflict has introduced volatility, but experts believe that gold's status as a safe-haven asset will support its value in the long run. Investors are advised to consider the potential for gold's resurgence as part of their strategic planning. #PreciousMetals#GoldRebound#MiddleEastConflict#SafeHaven#GeopoliticalTensions#MarketVolatility#GoldPrice#Investing#FinancialInstitutions

Crypto M - Crypto News

@CryptoM · Post #65334 · 13.04.2026 г., 00:14

🚀 PRECIOUS METALS | Global Central Bank Gold Purchases Show Resilience, Citic Securities Reports Citic Securities has released a report indicating that the global trend of central banks purchasing gold remains structurally resilient. According to Jin10, the market may be overestimating the driving forces and impact mechanisms behind this trend. The report outlines several key points: 1) The proportion of non-standard channels and domestic storage in gold purchases is rising, reflecting the strengthened attribute of gold as a 'sovereign safe asset.' 2) The current wave of gold buying goes beyond conventional reserve management and should not be directly equated with de-dollarization. The primary logic for central banks holding gold remains crisis hedging and reserve diversification. 3) Recent disturbances, such as temporary reductions by central banks in Turkey and Russia due to fiscal pressures, are tactical and do not alter the global net buying pattern. 4) Central bank gold purchases are a long-term force elevating the gold price center, but their behavior of buying on dips means they play more of a supporting role. Variables like real interest rates have a more significant impact on gold prices. 5) The gap in gold reserve proportions between emerging market central banks and developed countries is substantial, indicating that the current cycle of central bank gold purchases is far from over. Citic Securities is optimistic about medium to long-term allocation opportunities but advises monitoring signals of weakened correlation between gold and risk assets in the short term as a key entry point for buying on dips. #PreciousMetals#Gold#CentralBank#GoldPurchases#SafeAsset#ReserveDiversification#EmergingMarkets#GoldPrice#Investment#FinancialMarkets