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

Резултати

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

Пребарај: #espresso

当前筛选 #espresso清除筛选
Crypto Drop Club

@drop_cryptogo · Post #2242 · 08.01.2026 г., 09:39

🗣#Espresso: Wallet Linking Deadline for Kaito Participants Espresso is an EVM-compatible blockchain focused on Web3 scalability and privacy. The team has announced a deadline for Kaito Launchpad participants. If you took part in the sale via Kaito, you must link your wallet by 18 January. ✔ Wallet linking is available here This step is required to receive tokens at TGE. If the wallet is linked after the deadline, token distribution may be delayed or unavailable. Usually, after such snapshots, teams need several days to finalize data and prepare the token distribution. ✔ Also, do not forget to register for the airdrop. If expectations are correct, tokenomics and the airdrop registration deadline may be announced next week. ⏱ TGE is expected at the end of January. Crypto Drop Club 👉 SUBSCRIBE

Hashtags

Crypto Drop Club

@drop_cryptogo · Post #1851 · 06.06.2025 г., 20:08

🗣#Espresso: New Quest on Layer3 Espresso is an EVM-compatible blockchain focused on scaling and privacy for Web3. What to do: ✔ Head over to the website and connect your wallet ✔ Quiz answers: C | B | D ✔ Claim the cube on Arbitrum network ($0.25 fee) Extras: 🟠 Around 50k users have already completed all 7 previous quests 🟠 Don't forget to do the older ones here 🟠 One more quest is dropping on June 18 ☝️ Start trading on Bybit Crypto Drop Club 👉 SUBSCRIBE

Hashtags

Chollazo Exprés 🔥 Ofertas y Descuentos

@ChollazoExpres · Post #5362 · 29.12.2025 г., 16:30

💥Cafetera DeLonghi Dedica EC685.R Regala momentos especiales con un café excepcional ✅OFERTA: 141.33€ ❌ Antes: 219.99€ 💰Ahorras un 36%🔥 Prepara espresso y cappuccinos de forma sencilla y con un diseño elegante en ace 👉 Sorprende a tus seres queridos esta Navidad #cafetera#espresso#aceroinoxidable#ofertas#descuentos#hogar#navidad 🛰️Oferta publicada en Hogar