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

Резултати

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

Пребарај: #freepalestine

当前筛选 #freepalestine清除筛选
Yulduz Usmonova

@Yulduz_Usmonova · Post #3631 · 08.01.2025 г., 19:26

#FreePalestine Yulduz Usmonova va Mansur Agaliev tomonidan Falastindan olib kelingan ayollar va bolalarga "Shohsaroy" uylaridan 2 ta kvartira sovg'a qilindi. @Yulduz_Usmonova @YulduzIbragimovnaUsmonova

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3497 · 19.10.2024 г., 17:21

The baton he cast never touched the ground; before it could fall, it was seized by those prepared to continue the path towards Liberation. Palestine remains resilient and unwavering, ever-ready to nurture countless successors like Sinwar, ensuring the struggle endures. #FreePalestine

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3483 · 18.10.2024 г., 03:41

Martyr Yehya Sinwar faced his final moments with unwavering defiance. Clad in his fatigues, even with his right arm severed, he mustered the strength to hurl a stick at the Israeli drone recording him, a gesture of defiance in the face of overwhelming odds. From the moment he initiated the Al Aqsa Flood, he had accepted his fate with unyielding resolve. This footage serves as a potent symbol, one that will undoubtedly fuel the momentum of the rising tide. #FreePalestine

Unicorn Riot

@unicornriotninja · Post #3435 · 07.08.2025 г., 14:17

Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 2/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/

Unicorn Riot

@unicornriotninja · Post #3434 · 07.08.2025 г., 14:17

Denver, CO: #FreePalestine Sit-In Protests Zionist Ties at Center on Colfax - 1/2 [Twitter Archive, August 6, 2024]: https://unicornriot.ninja/2024/pro-palestine-anti-genocide-activists-rally-outside-denver-community-center-with-ties-to-israel/

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3202 · 13.09.2024 г., 20:23

📍Location: Meron Mountain, northern occupied Palestine. 🔻Hezbollah Rockets rain on illegal colonial settlers after Israel killed civilians in south Lebanon hours before. Result: You reap what you sow. This is what haopens to you when you are land thieves. Leave. Now. #FreePalestine

Эртай Искаков

@ertaisfr · Post #1721 · 27.10.2023 г., 10:14

Мусульмандардын каны төгүлгөн үчүн адам укугу деп дүйнөдө кыйкыргандар унчукпай отурушат. Эртең 28-ноябрь саат 11:00 Бишкекте Горький паркында Палестина элин колдоо акциясы өтөт. Исанова менен Рыскулова кесилишинде. Акция учурунда гумжардам чогултулат. #freepalestine

123•••910
ПретходнаСтраница 1 од 10Следна