Что-то вы гоните насчет "привычного вида формата 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
Honored by Prof. Hiroshi Takahashi's generosity in sharing his AAS Review Paper on land-surface influences on Asian monsoon precipitation and recommending the full special issue. Grateful for such support in advancing #climatescience ! Explore his study: https://link.springer.com/article/10.1007/s00376-026-5209-3#AAS
via @aasjournal.bsky.social - Adv. Atmos. Sci.
At the Ocean-Monsoon Conference 2026, @agturnermonsoon.bsky.social of the University of Reading presented a striking visual: the same location in India, captured under drought and active monsoon conditions. Two extremes. One region. A powerful reminder of what is at stake. 🧵👇#AAS#Climatescience
via @aasjournal.bsky.social - Adv. Atmos. Sci.
#Scientific_American🇺🇸📕[PDF]⬇️
#December2025
#Monthly_Magazines
For learning, for free(dom).
@backupofmagazines
NASA faces a stalled Mars sample-return mission as funding reshapes priorities in #TechPolicy, while a promising mRNA-based personalized cancer vaccine struggles amid shrinking research budgets in the U.S., underscoring a rising #HealthCrisis. Scientists also warn that deepfakes demand new “face-ownership” rights, adding momentum to global #AIRegulation. Fresh insights into black-hole limits and rare-earth formation expand our cosmic and geologic imagination, even as #ClimateScience pushes oil and gas giants to pivot toward plastics. New antidepressant treatments and studies on small daily joys highlight a parallel #MentalHealth shift across society.
#The_National_Geographic🇺🇸📕[PDF]⬇️
#December2025
#Monthly_Magazines
For learning, for free(dom).
@backupofmagazines
This issue captures a world in transition, from ancient engineering puzzles to the fragile future of memory. Stunning visuals highlight global migration, ecological risk and cultural resilience, while scientists push deeper into #ClimateScience and #Neuroscience. A precise Mesopotamian map surprises historians, and a tribute to Jane Goodall reflects on her transformative legacy in #WildlifeResearch. The “Pictures of the Year” series showcases unforgettable scenes shaped by conflict, migration and #GlobalCulture. As melting ice reveals prehistoric secrets, explorers race against time, reminding us how fragile our world is in the age of #EarthChange and #FutureTech.
#The_Science🇺🇸📕[PDF]⬇️
16 #October2025
#Weekly_Magazines
For learning, for free(dom).
@backupofmagazines
This week’s Science dives deep into the frontiers of #Nanoscopy, visualizing neural circuits with stunning 3D precision. From Arctic #Permafrost preserving ancient RNA viruses to #Ant colonies evolving architectural immunity, the issue spans from the microscopic to the planetary. Groundbreaking work tracks #SeaLevel change over 4.5 million years and explores durable #Hydrogen production membranes and electric control in #2Dmaterials. The “#ColdStorage” feature warns of hidden viral archives in melting ice—a chilling insight into #ClimateScience and future pandemics. A visionary issue linking biology, chemistry, and global sustainability through the lens of innovation.