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

Резултати

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

Пребарај: #satellites

当前筛选 #satellites清除筛选
Amazing Geography 🌍

@amazingeo · Post #640 · 18.02.2026 г., 20:31

🌍 Modern cartographers use remote sensing from satellites to create digital maps so detailed they can track changes in forests, cities, and coastlines within days of new data. ✨ #cartography⚡#mapping⚡#satellites⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #377 · 15.10.2025 г., 20:31

🌍 The biggest map ever made is the modern digital world map stored by satellites. Billions of points are updated daily, letting scientists watch Earth’s surface change almost in real time. ✨ #cartography⚡#satellites⚡#mapping⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #146 · 30.08.2025 г., 20:12

🌍 In 2000, the complete first digital map of Earth—called the SRTM—was created from space using radar. It captured mountain heights and landscape details for over 80% of Earth’s land. ✨ #mapping⚡#cartography⚡#satellites⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #218 · 11.09.2025 г., 16:12

🌍 Satellites can use infrared sensors to spot underground water by detecting tiny temperature differences on Earth's surface, helping find hidden aquifers in dry regions. ✨ #satellites⚡#remote⚡#mapping⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #488 · 01.12.2025 г., 20:31

🌍 Recent satellites can map changes in Earth's gravity from space. This helps track shifting water underground after floods or droughts, revealing hidden changes on a continental scale. ✨ #remote-sensing ⚡#satellites⚡#hydrology⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

MALI 24

@kamissokosekou3 · Post #37476 · 04.05.2026 г., 12:19

Le Pentagone a demandé aux entreprises de satellites de cacher des images de bases américaines détruites au Moyen-Orient 🛰. La société Planet Labs a confirmé cette demande, a déclaré la journaliste américaine Ana Kasparian 🗣. La réponse officielle du Pentagone était la suivante: “nous ne discutons pas de l'évaluation des dommages au combat pour des raisons de sécurité opérationnelle 🛡. Nos forces restent pleinement opérationnelles et nous continuons à remplir notre mission avec la même préparation et la même efficacité au combat 💪”. En même temps, CNN, citant sa propre enquête, a déclaré qu'au moins 16 bases américaines avaient été détruites et devenues inutilisables, ce qui représente la plupart des bases de la région 📉. #pentagone#entreprises#satellites#images

Amazing Geography 🌍

@amazingeo · Post #639 · 18.02.2026 г., 12:31

🌍 New satellite sensors can track wildfires as they ignite, mapping heat signatures from space day and night. This real-time data helps firefighters respond faster to changing fire fronts. ✨ #satellites⚡#remote-sensing ⚡#wildfires⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #451 · 13.11.2025 г., 12:31

🌍 Some satellites can track how much land sinks or rises after an earthquake by detecting tiny changes—sometimes less than a centimeter—across entire regions from hundreds of kilometers above Earth. ✨ #satellites⚡#remote-sensing ⚡#geodesy⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #299 · 26.09.2025 г., 15:31

🌍 Satellites now measure plant health from space by tracking tiny shifts in leaf color. This "vegetation index" helps predict crop yields and monitor droughts across continents. ✨ #remote⚡#sensing⚡#satellites⚡#agriculture⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #682 · 05.04.2026 г., 20:31

🌍 The newest satellites can now measure tiny changes in tree height worldwide. This helps track forest health and spot illegal logging by comparing images taken months or even days apart. ✨ #satellites⚡#forests⚡#monitoring⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

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