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

Резултати

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

Пребарај: #cryptotools

当前筛选 #cryptotools清除筛选

🚀TON Tokens: Is the Memecoin Scene Waking Up? The TON ecosystem keeps growing. Alongside the memecoins themselves, new services appear that make it easier to track data and trade. Trading bots are still few, but the trend is up. 🔍@x1000 — a token aggregator and chat assistant The bot pulls key stats on any token and replies as soon as someone posts a contract address. It works in direct messages or group chats, auto-showing fresh info. We’ve already added @x1000 to our work chat — no need to dig through explorers; the bot does it for us. 👨‍💻What the developer plans next Stepan, the creator (link above), says the next updates will add: 🟠 detailed holder stats 🟠 info on dev teams 🟠 a honey-pot check (can you actually sell the token?) 🟠 a scanner for new coins by custom filters 🟠 a possible scam indicator 💻Try the bot now in the comments or via DM. Just send a contract address, for example: EQA2kCVNwVsil2EM2mB0SkXytxCqQjS4mttjDpnXmwG9T6bO #TON#Memecoin#CryptoTools#TelegramTrading#CryptoNews

Airdrop Comic

@airdropcomic · Post #2060 · 11.07.2025 г., 12:26

🔥Profile Launch - Ronin Profile (LIVE) ✅ 💠Ronin has officially launched its Web3 Onchain Identity system — allowing users to create and manage their own profile with multi-wallet support. ☀️Profile Link :- Click Here ⚙️ How to Participate? ♦️Sign in with your Ronin Wallet (Keyless) ♦️Set up your profile and personalize your details ♦️Bind your social accounts for visibility ♦️Do daily check-ins to stay active ♦️Link up to 6 wallet addresses in one profile 🧩Early version available now — new features coming soon 🔐A keyless wallet is required to access your Ronin Profile 🔗 Source:https://x.com/Ronin_Network/status/1943245375638507811 ®Note - Please do your own research (DYOR) before joining to any airdrops project, also airdrop is 100% free. Don't send any fee or penny for receiving airdrop tokens required #RoninProfile#Ronin#Web3Identity#CryptoTools#Airdropcomic