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

Пребарај: #centaurusa

当前筛选 #centaurusa清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #39 · 30.07.2025 г., 08:00

🪐 The dusty core of the elliptical galaxy Centaurus A (NGC 5128) hides a colossal jet of high-energy particles, launched from a supermassive black hole and stretching over 1 million light-years into intergalactic space. X-ray and radio images reveal this jet carving through the surrounding gas, shaping the galaxy’s strange appearance and fueling vast lobes that glow in the cosmic void. ✨ #CentaurusA⚡#blackhole⚡#galaxy 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #353 · 30.09.2025 г., 18:21

🪐 Light travels faster than anything else in the universe—at a speed of 299,792 kilometers per second in a vacuum—so a radio signal sent from Earth would reach the Moon in just over a second. The jets ejected by the supermassive black hole in galaxy Centaurus A shoot out at speeds close to this ultimate limit, but nothing with mass can ever actually reach the full speed of light. ✨ #speedoflight⚡#spacephysics⚡#centaurusa⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​