TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #214 · 12 фев.

Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs

Hashtags

Резултати

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

Пребарај: #savebluemosque

当前筛选 #savebluemosque清除筛选
MY VERSION | МОЯ ВЕРСИЯ

@JANVITTAG · Post #6925 · 07.11.2025 г., 15:21

The situation at our Blue Mosque in #MazarESharif is deeply disturbing and demands immediate action - @nytimes. This is not merely a building — it is a vital part of our shared religious and civilisational heritage. We call on the #Taliban regime to fulfil its primary responsibility: to commission Afghan and international experts and allocate public funds for urgent repairs. Afghan political and business leaders must also contribute. My colleagues and I will certainly do our part. 🤝 We urge #UNESCO to give this restoration and conservation the highest priority. Finally, we appeal to our neighbours — especially #Uzbekistan🇺🇿, #Iran🇮🇷, and #Türkiye🇹🇷 — to support this effort with their technical expertise and resources. @president_uz@HakanFidan@araghchi @unescowhc #MazarESharif#CulturalHeritage#SaveBlueMosque