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

Пребарај: #easternconference

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

@CryptoM · Post #65087 · 10.04.2026 г., 23:24

🚀 Polymarket Sees Significant Bet on Hornets vs. Pistons NBA Game A notable transaction has occurred on Polymarket regarding the NBA regular season game between the Charlotte Hornets and the Detroit Pistons. According to Odaily, an account with a 43% win rate, identified by the address 0xe0f01e5ce19e71138a1fc77d3b466f50b7f3bad3, has purchased $200,000 worth of shares predicting a Hornets victory at an average price of 66 cents. The game between the Hornets and Pistons began today at 7 a.m. UTC+8. As the NBA regular season nears its conclusion, the Hornets hold a record of 43 wins and 37 losses, placing them 9th in the Eastern Conference. Meanwhile, the Pistons lead the Eastern Conference with 58 wins and 22 losses. #Polymarket#NBA#Hornets#Pistons#SportsBetting#Basketball#EasternConference

Crypto M - Crypto News

@CryptoM · Post #65329 · 12.04.2026 г., 23:24

🚀 NBA Regular Season: Magic Lead Celtics at Halftime In the Polymarket prediction event for the NBA regular season game between the Orlando Magic and the Boston Celtics, a user with significant earnings of over $1.8 million has invested more than $370,000 on the Magic to win with a 10.5-point spread at an average opening price of 57.9¢. Additionally, the user placed $30,000 on the Magic to win with a 12.5-point spread at an average opening price of 52¢. According to Odaily, the game, which started at 6 a.m. UTC+8, is currently at halftime with the Magic leading 61-52. Today marks the final day of the NBA regular season, with the Magic holding a record of 45 wins and 36 losses, placing them 7th in the Eastern Conference. The Celtics, with a record of 55 wins and 26 losses, are ranked 2nd in the Eastern Conference. #NBA#OrlandoMagic#BostonCeltics#Polymarket#basketball#EasternConference#MagicLead#NBARegularSeason#sportsbetting#halftime

Crypto M - Crypto News

@CryptoM · Post #64783 · 09.04.2026 г., 23:05

🚀 High-Stakes Bet on Bulls vs. Wizards NBA Game A significant wager has been placed on the Polymarket prediction platform regarding the NBA regular season game between the Chicago Bulls and the Washington Wizards. According to Odaily, an account with a history of over $4.3 million in losses has invested $150,000 on the Bulls to win against the Wizards with a 5.5-point spread, at an average opening price of 56 cents. Additionally, the same account has placed a $40,000 bet on the Bulls to win with a 6.5-point spread, at an average opening price of 50.9 cents. The NBA regular season game between the Bulls and the Wizards commenced today at 7 a.m. UTC+8. As the season nears its conclusion, the Bulls hold a record of 30 wins and 49 losses, placing them 12th in the Eastern Conference. Meanwhile, the Wizards have a record of 17 wins and 62 losses, ranking 15th in the Eastern Conference. #HighStakesBet#BullsVsWizards#NBA#Polymarket#ChicagoBulls#WashingtonWizards#NBASeason#Betting#SportsBetting#PointSpread#BasketballBetting#EasternConference