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

Резултати

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

Пребарај: #cricket

当前筛选 #cricket清除筛选
EdgeMarket.AI 📣

@edgemarketai · Post #8128 · 24.04.2026 г., 07:54

🚨 NEW EDGE MARKET LIVE Will Chennai Super Kings win 3 matches before May 28, 2026? This is not guessing. This is signal. Trade the outcome Validate results Earn BETON for truth The crowd sees patterns before headlines do. Join now 👇 https://edgemarket.ai/bnb/cricket/will-chennai-super-kings-win-3-matches-before-may-28-2026/statistics/69e5fea2dcd75d8e462361b8 ⚡ Powered by AI + community validation ⚡ Built on dual token system ⚡ Real outcomes. Real rewards. #EdgeMarket#BETON#SIGNAL#Cricket#PredictionMarkets

EdgeMarket.AI 📣

@edgemarketai · Post #8143 · 29.04.2026 г., 09:42

RCB vs Gujarat Titans is live on EdgeMarket. You are not just watching the game You can take a position before it ends YES if RCB wins NO if Gujarat Titans win Stake. Earn. Truth. Enter the market 👇 https://edgemarket.ai/bnb/cricket/will-royal-challengers-bengaluru-defeat-gujarat-titans/statistics/69e89c14a9870bbf09e2450a #EdgeMarket#RCB#GujaratTitans#Cricket#PredictionMarkets

djangoproject

@djangoproject · Post #447 · 18.09.2017 г., 10:35

https://pybee.org/news/buzz/2017-google-summer-of-code-final-report-dayanne-fernandes/ After almost 4 months of work on Google Summer of Code 2017, finally I'm completing my proposal. Every widget migration and every commit/PR/issue/discussion with my mentors about Cricket , Toga and rubicon-objc were detailed on the Issue 58. "Eating your own dog food" The best way to show that a product is reliable to the customers is use it. So, the way to show that #Toga is an effective tool to build a #GUI is to build a complete application using it. #Cricket is a graphical tool that helps you run your #test suites. Its current version is implemented using #Tkinter as the main GUI framework. So, why not test Toga inside of another product from #BeeWare? That's what I have acomplished during my GSoC work.

ПретходнаСтраница 1 од 3Следна