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

Резултати

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

Пребарај: #info

当前筛选 #info清除筛选
Bts.bighitofficial

@OUR_7_PRINCES · Post #115426 · 08.02.2026 г., 20:31

Tanu Muiño, a Ukrainian music video director has now started following Taehyung on insta. She was the director of Jungkook’s Standing next to you. #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115423 · 08.02.2026 г., 20:30

Most liked Netflix’s Instagram posts of all time: #1. Stranger Things — 4.5M #2. BTS — 4.2M #3. Wednesday — 3.9M https://www.instagram.com/p/DURl368ka3P/?igsh=NHpxY3RramYydnBs #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115414 · 03.02.2026 г., 08:06

NETFLIX TWITTER UPDATE BTS X NETFLIX BTS THE COMEBACK LIVE | ARIRANG @ March 21 8pm KST / 4am PST 🎤 BTS will perform at historic Gwanghwamun Square in Seoul. LIVE worldwide exclusively on Netflix. BTS: THE RETURN, DOCUMENTARY FILM @ March 27 🎥 BTS: THE RETURN, a documentary film showcasing the making of their comeback album ARIRANG. Only on Netflix #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115267 · 22.08.2025 г., 12:27

The South Korean Ministry of Justice confirmed 33,500 HYBE shares worth ~8.4 billion won were stolen from Jungkook. The suspect was found in Thailand, placed under an urgent detention request, and officially extradited to South Korea with Interpol’s support to face justice. from k-media: “It was reported that no actual damage was incurred as his agency took immediate action to freeze payment upon discovering the theft.” https://n.news.naver.com/article/001/0015580189?sid=102 #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115236 · 18.08.2025 г., 20:42

UMI, thanked Jungkook on X and IG for sharing her song! She also now follows Jungkook on IG 💕 #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115174 · 13.08.2025 г., 12:21

Bighit official Twitter update [Episode] j-hope @ Lollapalooza Berlin 2025 비하인드 공개! ( youtu.be/sqCz07uaEwQ ) #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115163 · 10.08.2025 г., 17:59

Soobin of txt called jhope 🐿 (bts j-hope) hello? 🐰 hello hyung…nim! hello! 🐿 yes, is this soobin? 🐰 yes, it is! 🐿 your voice has matured, huh? 🐰 thank you ☺️ 🐰 you might’ve heard but we’re going to gwangju for a festa 🐿 gwangjuuuu 🐰 ayy! and hyung-nim, you’re the best thing to come out of gwangju so… #INFO •@OUR_7_PRINCES•

Hashtags

Bts.bighitofficial

@OUR_7_PRINCES · Post #115147 · 10.08.2025 г., 02:07

Otoki Global announces the Jin Ramen shirts are now available on Amazon! “We heard you guys…and now we’re here to deliver💛 Jin Ramen t-shirts now available for purchase with Jin Ramen bowls on Amazon! Limited availability now, but restocking on August 18th 🙌🏼” Purchase here: a.co/d/6CPLQhX #INFO •@OUR_7_PRINCES•

Hashtags

123•••10•••20•••30•••40•••4647
ПретходнаСтраница 1 од 47Следна