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

Резултати

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

Пребарај: #gamee

当前筛选 #gamee清除筛选

🪙 You can claim your $WAT tokens now 1️⃣ In GAMEE App 2️⃣ In TokenTable App Need help claiming, fren? WatBird's frens at #GAMEE make this video guide for you! 😜 If you still confused — ask your question in our chat. Claim $WAT to TON wallet and trade on 🎰🎰🎰💫 app.ston.fi/swap/WAT/TON Wat a day! ❤️ #listing#TGE#Gamee#WAT#p2e#airdrop

Airdrop Gold : Crypto Airdrop

@airdropgoldchannel · Post #157677 · 23.09.2024 г., 17:13

💵 List of projects that will have #Airdrop in 2024. The list is not complete and will be constantly updated. ✔️#Gamee - 23 September 2024 ✔️ Rocky Rabbit - September 23, 2024 ✔️#hamsterkombat - September 26, 2024 ✔️#Major - October 1, 2024 ✔️#TonStation - October 6, 2024 ✔️#MemeFi - October 9, 2024 ✔️ X Empire - October 15, 2024 ✔️#Cats - October 2024 ✔️#TapCoins - October 2024 ✔️#Tomarket - October 2024 ✔️#SEED - November 2024 ✔️#Time Farm - November 2024 ✔️CEX.IO - December 2024 ✔️#Blum - Q4 2024 ✔️#Vertus - Q4 2024 💎 Share it By @Airdropgoldchannel Join Channel at once https://t.me/addlist/W62NCEpw6WoyY2Q0

🌑TON Festival: the First Gameplay Presentation is Live! The event format has grown: now #Festies is a full 3 days of activity in❤️TON, from May 23 to 25. This is the first experience of its kind in the ecosystem: interactive 3D environment, meetings with Web3 projects, quests, live challenges, prize pools and rewards directly in the on-chain. Gameplay demo is already available 👁 🚘🚘More partners, brands, announcements and surprises are coming soon! 🎟Tickets are still available at the current price, but🔥April 4 – price increase and launch of the STAMINA phase. Yesterday, an AMA "TMA: The Visual Aspect" was held at X Space— the organizers revealed details of the upcoming event 🎞Play Recording #Festies#TON#Web3#Gaming#TMA#Blum#YesCoin#Boinkers#Gamee

😼Catizen Mini Game Center Open Beta now LIVE!🚀🎮 👌 Dive into a world of top-tier games that blend fun with innovative earning opportunities. Enjoy exclusive rewards like game airdrops and referral bonuses. 👌 Earn a 10% top-up rebate from all your referrals across all games, including Catizen! Don’t miss out — start your adventure in the Catizen Mini Game Center today! 🌟 🔡 🔡 🔡 Open beta is live! Report bugs or game feedback to earn 300 Catizen FishCoins 🪙 😸Explore Catizen Mini Game Center #catizen#gamee#play#p2e#web3#gamefi#dogs#telegram#dapp#notcon#hamsetr