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

Пребарај: #usergrowth

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

@venturevillagewall · Post #4090 · 07.02.2025 г., 13:00

Polymarket Thrives Amid Trader Growth Betting platform Polymarket defies expectations, expanding active traders by over 50% to 462,000 since November. However, open interest dropped significantly from $500M to $100M, and trading volume halved from a peak of $2.6B to $1.2B. For detailed insights, visit Forklog's news. #Polymarket#Betting#Trading#Crypto#Finance#MarketTrends#StakeholderEngagement#UserGrowth#Blockchain

Crypto M - Crypto News

@CryptoM · Post #64566 · 09.04.2026 г., 08:31

🚀 Go Inc. Dominates Japan's Taxi Hailing Market Go Inc. operates the leading taxi hailing application in Japan, boasting the highest number of users in the country. Bloomberg posted on X, highlighting the company's significant presence in the Japanese market. The app's popularity underscores Go Inc.'s influence in the transportation sector, as it continues to expand its user base and enhance its services. This development reflects the growing demand for convenient and efficient transportation solutions in urban areas across Japan. #GoInc#Japan#TaxiHailing#Transportation#UrbanMobility#Bloomberg#UserGrowth

Venture Village Wall 🦄

@venturevillagewall · Post #3812 · 07.01.2025 г., 13:00

Investment Rounds Highlight New Innovations RoboForce secures $10M to create a Robotic Workforce for heavy tasks. JAN3 raises $5M for Bitcoin technology aimed at increasing access globally. Mocean Energy Ltd gets $539.99K to enhance ocean wave energy tech. CopyCat raises $500K for AI automation of browser tasks. Spintly secures $407.85K to streamline smart access control integration. Additionally, SettleTON emerges as a new DeFi solution on the TON ecosystem, boasting $250k TVL and 30k active users monthly. More details available in the blog. #AI#Crypto#VC#Robotics#Bitcoin#DeFi#FinTech#OceanEnergy#Automation#SmartAccess#Investment#Blockchain#Technology#Liquidity#NFT#EcoSystem#Efficiency#TechInnovation#UserGrowth#Funding