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

Резултати

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

Пребарај: #romancescam

当前筛选 #romancescam清除筛选
Crypto M - Crypto News

@CryptoM · Post #65406 · 13.04.2026 г., 05:25

🚀 Hong Kong Police Report Romance Scam Involving Cryptocurrency A recent report from Hong Kong police's 'Cyber Defender' platform reveals a romance scam resulting in a loss exceeding HKD 2 million. According to BlockBeats, the scam involved a fraudster who initiated contact with a woman in her fifties on Instagram, quickly establishing a romantic relationship. The scammer posed as a 'cryptocurrency investment expert,' promising guaranteed returns. The victim was first asked to transfer HKD 40,000 as an 'account opening fee.' Subsequently, she was persuaded to exchange cash for USDT at a physical exchange store in seven separate transactions, transferring the funds to the scammer's electronic wallet. Once the funds were secured, the scammer disappeared and cut off all communication. Police advise the public to exercise caution when forming online relationships. If someone claims to be an investment expert and requests money transfers for any reason, individuals should pause and reconsider before proceeding. #HongKong#Police#RomanceScam#Cryptocurrency#Fraud#CyberCrime#USDT#InvestmentScam#OnlineSafety