TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #281 · 18 авг.

Что-то вы гоните насчет "привычного вида формата 755 и 644". Я вот вообще не понял что это!😳 Действительно, что означают цифры которые мы получили в прошлом посте? Это кодировка, заключающая в себе режимы доступа к файлу. Подробней можно почитать в статье про chmod. Там можно увидеть альтернативное обозначение того же самого с помощью символов r w x, что значит чтение, запись, исполнение. Чтобы преобразовать восьмеричное число в такое обозначение в Python есть готовая функция >>> stat.filemode(0o755) '?rwxr-xr-x' Мы видим 3 группы по 3 символа, дающие 3 типа доступа для 3 типов юзеров. А что за знак вопроса в начале? Давайте передадим в эту функцию необрезанное значение от os.stat >>> stat.filemode(os.stat(path).st_mode) 'drwxr-xr-x' Это данные, которые мы безжалостно обрезали в прошлый раз😼 Первый символ обозначает тип объекта. Это может быть файл (-), директория (d) или симлинк (l). Вот простая схема данной кодировки [1][3][3][3] │ │ │ │ │ │ │ └──> Others Permissions │ │ └─────> Group Permissions │ └────────> Owner Permissions └───────────> File Type (разверните экран если вы с телефона) Если вы попробуете получить пермишены для симлинка то получите пермишены для файла >>> path = '.venv/bin/python3' >>> stat.filemode(os.stat(path).st_mode) '-rwxr-xr-x' Чтобы получить свойства именно симлинка, нужно это явно указать >>> stat.filemode(os.stat(path, follow_symlinks=False).st_mode) 'lrwxrwxrwx' #tricks#basic

Резултати

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

Пребарај: #sctp

当前筛选 #sctp清除筛选
IRAS

@irassg · Post #2142 · 14.05.2026 г., 02:06

💡Did you know?Not everyone pays personal income tax – it depends on how much you earn. Singapore uses a progressive tax system: tax rates start at 0% for chargeable income below $20,000 and increase as income rises. Those who earn more contribute more, making the system fairer for everyone. That spirit of fairness was at the heart of our conversations with close to 30 youths this week. The Tax Youth Network (TYN) held its second kick‑off session at the refreshed Taxpayer and Business Service Centre (TBSC), bringing together students, young professionals and aspiring tax leaders for candid conversations on Singapore’s tax system. The room buzzed with thoughtful questions, diverse perspectives and discussions on trust, fairness and the role taxes play in nation-building. The new Discovery Hub at TBSC also made its debut, creating a more open and engaging space for these conversations. We were also privileged to have our partners, Singapore Chartered Tax Professionals and the Tax Academy of Singapore, share insights on career pathways and learning opportunities in the tax ecosystem. 👉🏻 TYN is more than a network, it is a community of youth advocates shaping perspectives and driving conversations on Singapore’s tax future. Keen to join this growing community? Join us at go.gov.sg/tyn26 #TaxYouthNetwork#YouthEngagement#SCTP#TaxAcademyofSingapore

GitHub Trends

@githubtrending · Post #15173 · 27.09.2025 г., 12:30

#cplusplus#c_plus_plus#cpp#datachannel#libdatachannel#libnice#p2p#peer_to_peer#peerconnection#rfc_8831#rfc_8834#rtcdatachannel#rtcpeerconnection#sctp#webrtc#webrtc_datachannel#webrtc_video#websocket libdatachannel is a lightweight, easy-to-use C/C++ library that lets you add real-time peer-to-peer data, media, and WebSocket communication to your apps across many platforms like Linux, Windows, macOS, Android, and iOS. It simplifies WebRTC by providing a smaller, simpler alternative to Google's library, with compatibility for browsers like Firefox and Chrome. You can use it to connect native apps directly to web browsers with minimal dependencies, supporting secure connections via GnuTLS, Mbed TLS, or OpenSSL. It also supports compiling to WebAssembly for browser use, making it flexible for cross-platform real-time communication development[1][4]. This helps you build fast, efficient apps for video, audio, or data sharing without heavy libraries. https://github.com/paullouisageneau/libdatachannel