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

Пребарај: #tulsigabbard

当前筛选 #tulsigabbard清除筛选
America 🇺🇸 News & Politics

@America · Post #10400 · 19.03.2026 г., 13:12

🎯🇺🇸TULSI GABBARD GRILLED ON IRAN WAR INTEL 🔹 DNI Gabbard testifies Iran regime largely degraded but CONTRADICTS Trump on nuclear restart claims 🏛️ 🔹 Democrats demand: Did intel show imminent threat before strikes? Gabbard deflects all questions to president 🔥 🔹 BOMBSHELL: Iran nuclear program obliterated by Operation Midnight Hammer — zero rebuilding since 2025 💣 🔹 Joe Kent RESIGNS from counterterrorism post citing no imminent threat, Israeli lobby influence ⚰️ Former No War advocate now defends Trump action — but Senate hearing explodes with tensions 💀 #USNews#TulsiGabbard @america

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4191 · 27.03.2025 г., 14:13

A new security scandal has hit the #Trump administration as media reports a major data breach exposing senior U.S. security officials’ information online. According to an investigation by the German magazine #DerSpiegel, phone numbers, email addresses, and even passwords belonging to top U.S. security officials were found online. Among those affected are National Security Advisor #MikeWaltz, Vice-President #JDVance, #CIA Director #JohnRatcliffe, White House chief of staff #SusieWiles, U.S. Intelligence Coordinator #TulsiGabbard, and Secretary of Defense #PeteHegseth. The group debated policy and discussed operational details about the impending US military strike on #Yemen – conversations that provided a rare near-real-time look at the inner workings of Trump's senior #nationalsecurity team.