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

Пребарај: #learntocode

当前筛选 #learntocode清除筛选
Dasturlash hayoti️️ ️

@dasturlash_hayoti · Post #3990 · 05.10.2025 г., 06:58

#DasturlashHayoti#LearnToCode#Programmer Har bir dasturchi bilishi kerak bo‘lgan 5 ta bepul manba 🆓Pul to‘lamasdan bilim olishning eng zo‘r manbalari: 1️⃣FreeCodeCamp — front-end’dan tortib back-end’gacha 2️⃣roadmap.sh — qaysi yo‘nalishdan boshlashni aniq ko‘rsatadi 3️⃣Frontend Mentor — haqiqiy dizayn asosida kod yozish mashqi 4️⃣CSS Battle — o‘yin orqali CSS o‘rganasiz 5️⃣DevDocs — barcha texnologiyalar hujjatlari bitta joyda Bilim — eng yaxshi investitsiya. Ayniqsa, pulsiz bo‘lsa yanada yoqimli 😄 Shunaqa postlar davom etsin desangiz, ulashib qo‘ying — birga o‘rganamiz! 💪 💻@dasturlash_hayoti— Dasturchilar uchun eng kerakli maslahatlar va foydali kontent

Repositorio data science

@repo_science · Post #4259 · 08.12.2025 г., 03:46

#SpringBoot#RESTAPI#BackendDevelopment#CodeWithMosh#Java#StripeIntegration#CloudDeployment#LearnToCode 🚀 Ready to take your backend skills to the next level? 🔗Spring Boot: Mastering REST API Development🎓 - Learn to build clean, secure RESTful APIs - Add authentication, role-based access, and JWT security 🔒 - Integrate Stripe for real payment processing 💳 - Deploy your app and database to the cloud ☁️ - Apply industry best practices for production-ready code 🛠 👉 Join now @repo_science and start building real-world projects like a pro!

#HaSab

@Hasab_2016 · Post #160 · 07.04.2025 г., 07:58

YES! 🙌 It's a wrap! 🥳 The HaraCoders Bootcamp training, brought to you by the awesome Rotaract Club of Kuriftu 🤝, BuildX Ethiopia , Sira Ale, and Addis Ababa University College of Veterinary Medicine and Agriculture , has been a HUGE success! We're sending out waves of gratitude to everyone involved and a BIG congrats to our fantastic trainees! 🎉 So proud of you all! 🔥 Stay tuned... round 2 might be closer than you think! 😉🚀 #AddisCoders#BuildXEthiopia#TechForAll#EmpowerTheFuture#CodingBootCamp#EthiopianTech#LearnToCode#CodingForChange #Rotary #Rackuriftu #100yearsofserviceinafrica #Rotaract #District9212 #RotaractEthiopia

#HaSab

@Hasab_2016 · Post #152 · 03.02.2025 г., 17:21

🚀 Exciting News! 🚀 The AddisCoders BootCamp is brought to you by BuildX Ethiopia in partnership with Rotaract Kuriftu, SERRALE, and Addis Ababa University! 🎓💻 Together, we’re empowering Ethiopian youth with hands-on web development skills to build the future of tech! 🔥 Stay tuned for more updates! #AddisCoders#BuildXEthiopia#TechForAll#EmpowerTheFuture#CodingBootCamp#EthiopianTech#LearnToCode#CodingForChange #Rotary #Rackuriftu #100yearsofserviceinafrica #Rotaract #District9212 #RotaractEthiopia

Repositorio data science

@repo_science · Post #3109 · 28.04.2023 г., 17:58

#datascientist#datascience#datasciencejobs#dataanalysis#data#dataanalyst#dataanalytics#dataanalystjobs#analytics#python#pythonprogramming#rprogramming#sql#excel#statistics#testing#softwaretesting#projects#projectmanagement#agile#computerscience#programming#webdevelopment#softwaredevelopment#roadmap#visualization#learningeveryday#learning#tutorials#learntocode#apache#powerbi#tableau#machinelearning#ml#ai#artficialintelligence#deeplearning#bigdata#bigdataanalytics#algorithms#mathematics#datastructures#kaggle#nlp#reinforcementlearning#sql#nosql#databases#mongodb ----- Canal principal:@repo_science Cupones: @freecoupons_reposcience -----