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

Резултати

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

Пребарај: #realenglish

当前筛选 #realenglish清除筛选
BBC Learning English

@english_bbc_learning · Post #3909 · 31.01.2026 г., 12:57

Stress changes meaning — but you have to hear it to notice it 👂 Some English words look the same as nouns and verbs, but the stress moves — and it sounds very different. Watch these short videos to actually hear it: 📹https://youtu.be/Hh1PlngNt2Q?t=64 📹https://www.youtube.com/watch?v=7q8yk896pnc ⁣ Listening is the only way you’ll spot the difference. Try saying these aloud after you watch 🎤 #EnglishLearning#Pronunciation#RealEnglish

BBC Learning English

@english_bbc_learning · Post #3908 · 26.01.2026 г., 12:16

5 phrasal verbs with “PAY” I shared the questions first on purpose — to make you think before seeing the meanings. That struggle helps the meanings stick better than passive reading. If a meaning surprised you, that’s good — it means your brain is actually learning. #EnglishLearning#PhrasalVerbs#LearnEnglish#RealEnglish