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 слични објави

Пребарај: #adwa1896

当前筛选 #adwa1896清除筛选
Red Nile

@rednile12 · Post #11197 · 06.03.2026 г., 16:30

🎙️WEEK 18 | LIVE DISCUSSION The Spirit of Adwa & the Question of Iran Two moments—Adwa (1896) and Iran (2026)—separated by 130 years, yet tied by one question: Which side of history does a nation stand on? Does it stand for sovereignty, unity, and self-determination, as Ethiopia did at Adwa? Or for domination and imperial power? Tonight we explore how Adwa’s legacy helps us understand today’s global struggles through five principles: Unity • Sovereignty • Resistance • Stewardship • Sacrifice 📅March 6, 2026 ⏰2:00–4:00 PM (Ethiopia Time) 🎙️Host: Ethiopia First 🗣️Guest: Alexander Yohannes — Red Nile Media 🔗Join Live:https://t.me/+AAE_Pc8aWTczYTA0 #Adwa1896#SpiritOfAdwa#Ethiopia#Iran#Geopolitics#RedNileMedia