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

Пребарај: #dataethics

当前筛选 #dataethics清除筛选
The Digi Doodles

@Digi_doodles · Post #622 · 01.08.2025 г., 10:02

WeTransfer’s AI Terms: Are Artists Losing Control?🃏 July 28, 2025 · The Art Newspaper A quiet shift with loud consequences. 👂 WeTransfer has updated its terms of service to allow the use of uploaded files for AI training — sparking concern among digital artists and creatives. While the platform claims “anonymized and aggregated” data use, critics warn this could jeopardize intellectual property. What’s at stake: — Artists may unknowingly feed generative AI tools — Lack of opt-out or clear consent for creative works — Questions around ownership, credit & ethics Another wake-up call in the ongoing conversation around AI, authorship, and data rights📖 #AIArt#DigitalRights#WeTransfer#ArtAndTech#DataEthics