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

Пребарај: #executed

当前筛选 #executed清除筛选
BadVolf

@BadvolfNews · Post #129 · 05.06.2022 г., 09:31

I decided to respond to #Ukraine#President#Zelensky about being placed on the Ukrainian #Peacemaker Execution list. Yes, Me and some other #journalists were put on the Ukrainian's "Peacemaker" Extermination list. It's a website that Ukrainian troops use and if you are on that list and found in Ukraine, you are #executed on the spot. Their source of information is not only their #SBU, but western intelligence agencies, like the #FBI, #CIA, #NSA, #MI5 and others. I took this opportunity to address President Zelensky about his policy of executing journalists that refused to regurgitate his Ukrainian talking point lies. Mr. Zelensky, This is for YOU 🖕🏿🖕🏿🖕🏿