@lotok · Post #951 · 07.03.2026 г., 12:16
Meoooor #signs from my #subs, from one of my most lovely sub :) Blue, you are the best!
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
Пребарај: #signs
@lotok · Post #951 · 07.03.2026 г., 12:16
Meoooor #signs from my #subs, from one of my most lovely sub :) Blue, you are the best!
@lotok · Post #946 · 06.03.2026 г., 13:48
#signs from our #subs
@lotok · Post #929 · 02.03.2026 г., 16:42
#subs#signs are awesome
@starvetbooks · Post #4932 · 07.02.2025 г., 15:17
COCCIDIOSIS Coccidiosis is a deadly disease that hampers chicken's productivity and welfare. Thus, the disease is a major menace to the global poultry industry. Coccidiosis which is caused by the apicomplexan parasite of the genus Eimeria has seven known species which affect the different parts of the intestinal tract of chickens #SIGNS Common signs in infected flocks include *reduced feed consumption, * rapid weight loss, * droopiness * ruffled feathers, * severe diarrhea. * Wet droppings with mucus * Clinical infections are seldom seen in poults >8 wk old. Morbidity and mortality may be high #TREATMENT The most popular treatment for coccidiosis is #Amprolium, which blocks the parasite's ability to uptake and multiply. Treatment is usually administered by adding Amprolium to the chickens' water supply, however in some cases, where sick chickens aren't eating or drinking enough, the medication is given orally. https://t.me/starvetbooks
Hashtags
@dreamsgallerys · Post #1801 · 12.12.2023 г., 07:57
Dreams Gallery #арт#art#some#spell#sorceress#enchantress#green#signs#magic