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

Резултати

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

Пребарај: #irannucleartalks

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

@CryptoM · Post #65222 · 12.04.2026 г., 04:13

🚀 Iran Nuclear Talks Fail as Tensions Impact Crypto Markets U.S. Vice President Vance announced that after 21 hours of negotiations, no agreement was reached with Iran, which refused to abandon its nuclear weapons program. According to BlockBeats, U.S. President Donald Trump had previously warned that failure in talks would lead to 'total destruction' of Iran. The ongoing conflict has caused volatility in the crypto market for weeks, compounded by tariff disputes, with Bitcoin dropping below $70,000 earlier this month. Analysts had predicted that a successful agreement could push Bitcoin to $80,000, while a breakdown might see it fall to $65,000. On the bullish side, data from on-chain wallets indicate that the largest Bitcoin holders, known as whales, have continued to buy during the peak of geopolitical turmoil rather than sell. Their reasoning is that if the conflict escalates, disrupting oil supplies from the Persian Gulf, rising oil prices and inflation could delay Federal Reserve rate cuts, benefiting scarce assets like Bitcoin and gold. Conversely, Peter Schiff, a gold trader and long-time Bitcoin skeptic, argues that as tensions rise, investors will flee Bitcoin for gold. Schiff predicts a Bitcoin 'collapse,' asserting that gold is the only true safe haven during wartime, and suggests that insiders may be profiting from market fluctuations driven by conflict news. If Trump follows through on his 'total destruction' threat, both stock and crypto markets are likely to experience simultaneous sell-offs. In terms of future developments, Vice President Vance maintained a firm stance at a press conference but did not rule out further negotiations. The Iranian parliamentary speaker demanded a ceasefire in Lebanon and the unfreezing of assets before engaging in formal talks. For Bitcoin traders, the next 72 hours hinge on two critical issues: whether a ceasefire agreement can be sustained and if Trump will escalate the conflict. Meanwhile, whale wallets continue to buy at current prices, indicating that some large investors are betting on stabilization of the situation. #IranNuclearTalks#CryptoMarket#Bitcoin#GeopoliticalRisk#Trump#OilPrices#Inflation#Gold#MarketVolatility#WhaleInvesting#MiddleEastConflict#Lebanon#USPolitics#BTC