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

Резултати

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

Пребарај: #water

当前筛选 #water清除筛选
Indian Development News 🇮🇳

@developmentnewsindia · Post #44355 · 03.05.2026 г., 07:46

🇮🇳🚱🇵🇰 Baglihar Dam’s gates on the Chenab River in Ramban, Jammu & Kashmir, remain shut, with no visible water being released downstream towards Pakistan. #Water

Hashtags

Practical information/skills

@PracticalInformation · Post #1331 · 31.07.2022 г., 05:49

California announces plan to charge landowners for their own water It's not satire — it's Agenda 2030 perfect awareness of all resources and economic activity. California has announced to landowners that they now are going to be billed for the water they take out of their own wells, on their own land. Hundreds of dollars in fees are looming, with 25% penalties for those who don't pay on time: "Landowners whose property is within an unmanaged area and contains an operating ground water extraction well must report the volume of groundwater extracted from the well. The groundwater extraction volume must be reported as a monthly total. In addition to pumping volumes, reports must include the location of the well and the place and purpose of use of the groundwater. Groundwater extraction reports are not due to the state water board until February 1, 2023. However, if you are required to report, the report must include pumping volumes for each month between the date of receipt of this letter and September 30, 2022." #Water https://www.wnd.com/2022/07/california-announces-plan-charge-landowners-water/

Hashtags

Contamination of drinking #water can occur at the source, during transportation, or storage at home. Ensure your water is safe before use: ➡️BOIL water before drinking ➡️USE water from safe sources ➡️STORE water in properly covered containers ➡️ENSURE bottled water is properly sealed before buying Advisory: https://ncdc.gov.ng/news/513/stop-cholera%3A-public-health-advisory #STOPCholera

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40493 · 07.01.2026 г., 07:02

A water filter called "Life Straw" allows a person to drink directly from a dirty water source. Extremely portable and easy to use, it filters water through pores that are tiny enough to block parasites and other types of bacteria. [Read more..] @googlefactss#water#nowyouknow

beng!

@mdmbeng · Post #2201 · 12.10.2024 г., 11:00

#限免#Water Eject 📳手机震动排水 喇叭清灰App 【 Water Eject 】终身会员限免速收 📣 频道:@mdmbeng 投稿:@mdmbeng_Bot

Interesting Planet 🌍

@interesting_planet_facts · Post #506 · 05.08.2025 г., 20:22

🌎 In Mexico's Yucatán Peninsula, the cenote Ik Kil is a natural sinkhole filled with crystal-clear water, formed by collapsed limestone over thousands of years. Once sacred to the Maya, these cenotes provided fresh water and served as entrances to the underworld in ancient beliefs. ✨ #geology⚡#history⚡#water 👉subscribe Interesting Planet

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