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

Резултати

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

Пребарај: #nucleartest

当前筛选 #nucleartest清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40475 · 04.01.2026 г., 11:00

The Vela Incident happened in 1979 when a U.S. satellite detected a double flash of light near the Indian Ocean. This flash is believed to be from a nuclear test explosion, but no country officially claimed it. Some think it was a secret nuclear bomb test by South Africa and Israel. The event remains a mystery because no clear proof was found. 🌍💥🔍 [Read more] @googlefactss#VelaIncident#NuclearTest#Mystery

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40602 · 29.01.2026 г., 05:02

On January 29, 1996, French President Jacques Chirac announced the end of France’s nuclear tests in the South Pacific, saying "France now has a reliable nuclear weapon". No more tests will be done in the future.. 🌍⚛️ [Read more] @googlefactss #France#NuclearTest#JacquesChirac#History#Weapons