Что-то вы гоните насчет "привычного вида формата 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
How to use Fear & Greed and Altcoin Season indicators to make decisions?
If you trade or invest in crypto, these two indicators will help you understand the overall market sentiment and choose a more intelligent strategy. Let's look at what they show:
😨Fear & Greed Index. Current: 52 — Neutral
This index reflects the emotions of traders:
0–24 — Strong fear. Market is oversold, entry points are possible.
25–49 — Fear. Cautious mood, consolidation possible.
50–74 — Greed. Investors are confident, but they should be more careful.
75-100 — Strong greed. Overheating and rollback may occur.
🤔What to do:
If fear is high (especially <25) — consider purchases.
If you are very greedy (>75) — take profit, do not enter at highs.
💎Altcoin Season Index. Current: 17/100
This indicator shows who dominates the market — Bitcoin or altcoins:
<25 — Bitcoin Season: Capital Flows into Bitcoin, Alts Weaken.
25–75 — Mixed phase.
>75 — Altcoin Season: altcoins are actively growing.
🤔What to do:
Now (17/100) — Bitcoin dominates. Risks for altcoins are higher. Better to focus on BTC and wait for a trend change.
When >75 - you can look for alts with strong dynamics and enter them on growing interest.
🐃Trade in Telegram mini app
#Crypto#AltcoinSeason#FearAndGreed
🪙EthGlobalNews | #BTCMarket Alert
🚨 ALERT: #Crypto sentiment has plunged into extreme fear — the lowest since March.
#Bitcoin is hovering near $100K while gold and silver rally sharply after the US government shutdown ended.
——————
📌 市場情緒跌至三月以來最低點;避險資產走強下,BTC 價格仍承壓震盪。
#FearAndGreed#Macro
———
👍@Web3NewsInsight
🥲
🥲Follow for more Web3 News
🤣
Crypto Market Faces Severe Downturn
1️⃣ BTC inflow to exchanges hits annual high amidst panic. Price dropped below $90,000, triggering massive sell-offs.
2️⃣ Fear & Greed Index plunges to extreme fear (25), signaling anxiety in crypto markets.
3️⃣ BTC holders recorded losses of $1.73 billion, marking the highest since August 2024.
4️⃣ ETF funds faced major outflows totaling $1.01 billion, a record since launch.
5️⃣ Meme coins like Dogecoin and Shiba Inu drop significantly, as market saturation affects their traction.
6️⃣ New AI-meme project MIND of Pepe raises $6.8 million, distinguishing itself with functional AI integration.
7️⃣ Ethereum Foundation pledges $1.25 million for legal defense of Tornado Cash developer.
📈More Details on Bitcoin Rally Potential
🔗Ethena Stablecoin Investment
🔗Optifye Startup Controversy
#Crypto#BTC#ETH#MemeCoins#AI#MarketTrends#Investments#Outflows#FearAndGreed#Blockchain#Saturation#MarketAnalysis#DeFi#Ethereum#TornadoCash#VC#WhaleAlert#YCombinator#Optifye#MINDofPepe