@DansGN · Post #5714 · 13.12.2024 г., 03:58
顽皮狗发布新作Intergalactic: The Heretic Prophet https://www.youtube.com/watch?v=o7TVPoxwi74 #Intergalactic#NaughtyDog
Hashtags
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
Пребарај: #intergalactic
@DansGN · Post #5714 · 13.12.2024 г., 03:58
顽皮狗发布新作Intergalactic: The Heretic Prophet https://www.youtube.com/watch?v=o7TVPoxwi74 #Intergalactic#NaughtyDog
Hashtags
@cosmomyst · Post #529 · 30.11.2025 г., 12:21
🪐 The light from the Triangulum Galaxy (Messier 33), our next-nearest spiral neighbor, takes about 2.7 million years to reach Earth—meaning we see this galaxy as it was millions of years ago. Even within the Local Group of galaxies, the vast stretches of intergalactic space are so immense that a beam of light travels these cosmic distances only after crossing generations of life on our planet. ✨ #spacedistances⚡#triangulumgalaxy⚡#intergalactic⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #386 · 07.10.2025 г., 12:21
🪐 In 2024, observations with the CHIME radio telescope revealed that some fast radio bursts (FRBs) can travel through the sparse gas between galaxies—known as the intergalactic medium—without slowing down or scattering as much as expected. This suggests that the space between galaxies, like that between the Milky Way and the Triangulum Galaxy (M33), is even more empty and calm than scientists previously thought, allowing these intense millisecond bursts of radio energy to arrive at Earth almost untouched by cosmic matter. ✨ #FRB⚡#radioastronomy⚡#intergalactic⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels
@cosmomyst · Post #34 · 30.07.2025 г., 05:51
🪐 The Andromeda Galaxy, our colossal neighbor, is surrounded by an immense, nearly invisible halo of hot gas that spans more than 1.3 million light-years across. Recent observations with the Hubble Space Telescope revealed that this vast envelope is rich in metals and may be interacting with our own Milky Way’s halo, weaving an intergalactic veil between the two future-colliding giants. ✨ #Andromeda⚡#galactic⚡#halos⚡#intergalactic 👉subscribe Universe Mysteries