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

Резултати

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

Пребарај: #golanheights

当前筛选 #golanheights清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3837 · 03.01.2025 г., 16:48

Israeli forces have taken control of the Mantara Reservoir, southern Syria's largest dam, in the newly occupied buffer zone near Quneitra in the Golan Heights. Military vehicles have been documented in the area, marking another significant step in Israel’s expansion within Syria. The seizure follows a violent Israeli airstrike on January 2 near Damascus, targeting the Tal al-Shahem military site. Syrian media reported powerful explosions in the western countryside of the capital, underscoring the intensifying conflict. Israel now controls six strategic water bodies in southern Syria, including the Al-Mantara Dam. This development is part of a broader campaign that has seen Israel secure key water sources in Syria and Jordan. Reports indicate Israel controls 30% of Syria's and 40% of Jordan's water supply. #Israel#Syria#GolanHeights#MantaraDam#MiddleEast#IsraeliOccupation#Quneitra#MilitaryExpansion

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3835 · 02.01.2025 г., 18:25

Dr. Omar Nashabe discusses Israel’s ongoing occupation of Mount Hermon and its defiance of international law. #IsraelOccupation#MountHermon#InternationalLaw#Syria#MiddleEast#OmarNashabe#GolanHeights#MilitaryExpansion#SyriaConflict