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

Резултати

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

Пребарај: #loanrepayment

当前筛选 #loanrepayment清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3532 · 20.12.2024 г., 09:31

Paidly Secures $2M Funding Paidly has raised $2M to enhance its customizable Student Loan Repayment Benefit service, aimed at improving employee recruitment, retention, and financial wellness. Learn more at Paidly. #Paidly#Funding#EmployeeBenefits#Education#FinancialWellness#LoanRepayment#Recruitment#Retention

Crypto M - Crypto News

@CryptoM · Post #64609 · 09.04.2026 г., 10:31

🚀 Binance to Enhance VIP Loan Services with New Fixed Rate Options According to the announcement from Binance, the platform is set to enhance its VIP Loan services starting from 2026-04-09 08:00 (UTC). This update will allow users to borrow Fixed Rate Loan orders directly from the VIP Loan page, offering a more seamless borrowing experience. The new feature aims to provide users with additional fixed rate options while benefiting from an extensive list of collateral assets available under the VIP Loan program. The key updates include the introduction of additional liquidity from Fixed Rate Loans. Users will now have the ability to borrow Fixed Rate Loan orders directly from the VIP Loan page, in addition to the standard VIP Loan fixed rates. This update also introduces streamlined batch borrowing, enabling users to borrow multiple Fixed Rate Loan orders in one batch. Furthermore, the service will support multi-collateral pledging, allowing users to use multiple asset types as collateral for a single loan. This offers a wider range of eligible collateral compared to standard Fixed Rate Loans. Additionally, the update provides flexibility at maturity. When the loan term ends, users can choose to auto-repay, repay early, or convert to a Flexible Rate loan to continue borrowing seamlessly. Binance VIP Loan is designed as a large personal and institutional over-collateralized loan service, offering competitive rates, terms, and services. It aims to unlock greater potential for users in objectives such as increased liquidity for long-term investment funds, leveraged trading, and hedging strategies. Users are advised to monitor their loan-to-value (LTV) ratios closely to avoid potential liquidations or losses due to changes in collateral ratios. Binance emphasizes that it is not responsible for any losses incurred if users fail to adjust their collateral while using Binance Loans products. #Binance#VIPLoan#FixedRateLoan#CollateralAssets#BatchBorrowing#MultiCollateral#LoanRepayment#Liquidity#LeveragedTrading#HedgingStrategies#LTVRatio#CryptoLoans