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

Пребарај: #coinexmining

当前筛选 #coinexmining清除筛选
Crypto Profit Coach™

@cryptoprofitcoach · Post #9118 · 10.02.2025 г., 16:10

🔈 EPIC Listing Bonus: Deposit Events – Share 15,000 EPIC! 🎉 📣CoinEx is thrilled to announce the listing of EPIC! To celebrate, we’re launching an exclusive deposit event, giving you a chance to grab a share of 15,000 EPIC! 🔥 ▶️ Deposit & Earn Up to 10% Cashback 📅 Duration: 8:00 Feb 6 – 8:00 Feb 13, 2025 (UTC) 🛡 Who’s eligible? New users registered after Feb 5, 2025 (UTC) 🎉Rewards: 🏆 Top 100: 10% cashback (Max 40 EPIC per user) 🎖 Next 400: 5% cashback (Max 15 EPIC per user) 📌 Limited to the first 500 qualified users! 📣 Join now and claim your rewards ▶️: https://www.coinex.com/en/announcements/detail/34572280466580 ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun

Crypto Profit Coach™

@cryptoprofitcoach · Post #9099 · 11.12.2024 г., 14:31

🔼 🥰 😇 🥰 🥰 hits an Impressive 202.57% APY! 👀 📣CoinEx’s latest empowerment program is setting new records—this is the highest APY in 2 years! ▶️ Don’t miss CoinEx’s 6th Launchpool Event: 🎆Start with just 100 $CET 🟥Dive into a massive 13,000,000 $HOLD pool 💰 ✅Estimated APY could soar as high as 103%! 😱 ▶️Claim your $CET now: https://www.coinex.com/en/mining/6?pool=CET Full details: https://www.coinex.com/en/announcements/detail/32916644706964 💥Ride the $CET wave : Earn rewards & benefit from its rising value! CoinEx’s buyback strategy uses 20% of daily trading fees to repurchase $CET, which is burned monthly until there’s no $CET left in circulation—creating a deflationary model. 🔥 Current burn rate: 72.15%! 🔥 ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun

Crypto Profit Coach™

@cryptoprofitcoach · Post #9094 · 07.12.2024 г., 05:26

🚀 CET Hits 197.73% APY! CoinEx's empowerment program is crushing it—this is the highest APY in 2 years! 💥 Don’t miss CoinEx’s 5th Launchpool Event: - Start with just 100 $CET - Dive into a 10,000 $LKY pool 💰 - Estimated APY can reach as high as 224%! 😱 Snag your $CET now: https://www.coinex.com/en/mining/5?pool=CET Full details: https://www.coinex.com/en/announcements/detail/32630651860500 Ride the $CET wave: Earn rewards and enjoy its rising value! CoinEx employs a buyback strategy that utilizes 20% of daily trading fee income to repurchase CET, which is then burned monthly till there's no CET circulating in the market, creating a deflationary model. At present, the burning rate has reached 71%. ✨✨✨✨✨✨✨✨ Use My Referral link to Sign Up: https://www.coinex.com/register?rc=9qggk 🌹🌹🌹🌹🌹🌹🌹✨ #CoinExMining#CET#Launchpool#CryptoRewards#BullRun