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

Резултати

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

Пребарај: #losangeles

当前筛选 #losangeles清除筛选
ℭ𝔬𝔪𝔟𝔞𝔱𝔩𝔳𝔩™

@realcombatlvl · Post #24622 · 04.08.2025 г., 02:15

🇺🇸#LosAngeles. Wild teens ransack Chevron store in Lincoln Heights in broad daylight. Another SoCal store is taken over by rampaging teens racksacking aisles, grabbing whatever they can. This time, a Lincoln Heights Chevron station is hit. The frustrated store managers who want police to do more to stop the takeovers. Follow us -> LiveLeak

Hashtags

Dr Sherri Tenpenny

@SherriTenpenny · Post #24757 · 19.04.2026 г., 05:24

This is absolutely disgusting and heartbreaking. Homeless addicts on Skid Row in LA are using innocent dogs to test their drugs for fentanyl. These poor animals are being fed deadly substances, abused, neglected, sold for drugs, and thrown away like trash. Volunteers from Starts With One Today are risking their lives to rescue these dogs with zero support from the city. How has Mayor Karen Bass and LA leadership let this horror continue? Animals are suffering and dying in plain sight while officials do nothing. This is pure cruelty. Where is the outrage? Where is the action? #SaveSkidRowDogs#AnimalAbuse#LosAngeles 🔹👉🏻@SherriTenpenny

Jeffery Mead

@the_jefferymead · Post #507 · 19.02.2026 г., 05:55

PERFECT RING FORMED OVER LOS ANGELES This appeared high above L.A. just after dusk. A bright linear trail stretched across the sky — and around it, a smooth circular arc expanded and held its shape. The symmetry is what stands out. A straight line through the center. A clean curve wrapping around it. It lingered long enough for people across the city to stop and stare. Los Angeles, California. Did you catch this from where you are? MrMBB333 👇 Drop your city. #MrMBB333#SkyWatch#LosAngeles

AI match predictions

@ai_match_prediction · Post #12028 · 10.05.2026 г., 13:05

USA Major League Soccer🇺🇸 2026-05-10 20:30 UTC New York City FC vs. Columbus Crew Predicted outcome: New York City FC✅ Predicted score: 3:2 Actual: New York City FC 3:0 #NewYorkCity#ColumbusCrew 2026-05-10 23:00 UTC Minnesota United FC vs. Austin Predicted outcome: Minnesota United FC❌ Predicted score: 2:1 Actual: Draw 2:2 #MinnesotaUnited#Austin 2026-05-11 01:00 UTC Los Angeles FC vs. Houston Dynamo Predicted outcome: Los Angeles FC❌ Predicted score: 2:1 Actual: Houston Dynamo 1:4 #LosAngeles#HoustonDynamo #Football#USAMLS

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