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

Резултати

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

Пребарај: #celebrities

当前筛选 #celebrities清除筛选
Kursiv Uzbekistan (Eng)

@kursivuzeng · Post #2674 · 27.02.2026 г., 06:53

🌟 TIME Unveils 2026 Women of the Year List 👩 TIME has named 16 influential women from entertainment, sports, business and activism as its 2026 Women of the Year, celebrating their contributions to equality and social progress. 🎬 Honourees include actor-singer Teyana Taylor, Lucy Liu, Sheryl Lee Ralph, filmmaker Chloé Zhao, musician Brandi Carlile, and Olympic champion Sydney McLaughlin-Levrone. Authors, activists, and business leaders such as Mel Robbins, Mariska Hargitay, Amy Sherald, Reshma Kewalramani, Kecia Steelman, and Reshma Saujani are also featured. Humanitarian figures like Isata Dumbuya, Sister Norma Pimentel, Safeena Husain, and Mahnoor Omer are recognised for their grassroots impact. Read more on the website #Celebrities

Hashtags

Bali News

@balinews · Post #310 · 03.02.2025 г., 11:06

🎤 Usher feels happy in Bali 😎 R'n'B singer Usher visited Bali and called himself the happiest man in the world. 📱 In one of his latest posts, the rapper shared his joy of being in Bali and said he was enchanted by the island of gods. 👏 Subscribers supported him in high appreciation of the island and its beauties. @BaliNews #celebrities

Hashtags

Bali News

@balinews · Post #54 · 21.05.2024 г., 09:30

✈️Elon Musk flew to Bali for the first time to launch Starlink Photos of the founder Elon Musk in a traditional Balinese shirt and frangipani necklace have already traveled around the world. On the day of his arrival, he had time to participate with the country's President Joko Widodo in the opening of the World Water Forum and admire the nature of Bali. I'm amazed by the mangrove trees and this huge amount of greenery around, it's really cool. shared the Tesla founder did what he came for – he tested the Starlink internet service. @BaliNews #celebrities

Hashtags

Bali News

@balinews · Post #49 · 16.05.2024 г., 11:05

😮Elon Musk flies to Bali to unveil Starlink service SpaceX founder Elon Musk will be in Indonesia for the launch of the company's Starlink internet satellite service in the country on May 19. This was announced by the Minister for Investment, Mr. Luhut. The event is expected to take place alongside President Joko Widodo on the sidelines of the World Water Forum, which kicks off on the island on Saturday, May 18. Since the beginning of the year, the heads of two of the world's biggest technology companies have already visited Indonesia, promising major investments in the country. They are Apple CEO Tim Cook and his Microsoft counterpart Satya Nadella. @BaliNews #celebrities#events

Bali News

@balinews · Post #549 · 09.01.2026 г., 09:35

⭐️It looks like a movie featuring Gerard Butler may be filming in Ubud 📸 The actor has been spotted several times in the city center, calmly walking around, chatting with people, and taking photos with fans — without security or a film crew, dressed in casual everyday clothes, far from the usual Hollywood glamour. 👍 The very fact that a Hollywood star of this level can freely walk around Ubud and interact with locals has once again fueled conversations about Bali as a place where celebrities can be “just people,” rather than targets for paparazzi. What do you think — is this a film shoot, or is Butler simply vacationing on the island? #celebrities#Ubud@BaliNews

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