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

Резултати

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

Пребарај: #levadiakos

当前筛选 #levadiakos清除筛选
AI match predictions

@ai_match_prediction · Post #12077 · 13.05.2026 г., 09:05

Greece Super League 1🇬🇷 2026-05-13 14:00 UTC Levadiakos vs. OFI Predicted outcome: Levadiakos✅ Predicted score: 3:1 Actual: Levadiakos 3:2 #Levadiakos#OFI 2026-05-13 14:00 UTC Volos NFC vs. Aris Thessalonikis Predicted outcome: Aris Thessalonikis✅ Predicted score: 1:2 Actual: Aris Thessalonikis 1:2 #Volos#Aris 2026-05-13 16:30 UTC Olympiakos Piraeus vs. Panathinaikos Predicted outcome: Olympiakos Piraeus✅ Predicted score: 2:1 Actual: Olympiakos Piraeus 1:0 #Olympiakos#Panathinaikos 2026-05-13 16:30 UTC PAOK vs. AEK Athens FC Predicted outcome: AEK Athens FC❌ Predicted score: 1:2 Actual: Draw 1:1 #PAOK#AEK #Football#GreeceSuperLeague1

AI match predictions

@ai_match_prediction · Post #12023 · 10.05.2026 г., 09:05

Greece Super League 1🇬🇷 2026-05-10 14:00 UTC Aris Thessalonikis vs. OFI Predicted outcome: Aris Thessalonikis✅ Predicted score: 2:1 Actual: Aris Thessalonikis 3:1 #Aris#OFI 2026-05-10 14:00 UTC Volos NFC vs. Levadiakos Predicted outcome: Levadiakos✅ Predicted score: 1:2 Actual: Levadiakos 0:3 #Volos#Levadiakos 2026-05-10 16:30 UTC Olympiakos Piraeus vs. PAOK Predicted outcome: Draw✅ Predicted score: 1:1 Actual: Draw 1:1 #Olympiakos#PAOK 2026-05-10 16:30 UTC AEK Athens FC vs. Panathinaikos Predicted outcome: AEK Athens FC✅ Predicted score: 2:1 Actual: AEK Athens FC 2:1 #AEK#Panathinaikos #Football#GreeceSuperLeague1

AI match predictions

@ai_match_prediction · Post #11894 · 03.05.2026 г., 09:06

Greece Super League 1🇬🇷 2026-05-03 14:00 UTC Levadiakos vs. Volos NFC Predicted outcome: Levadiakos✅ Predicted score: 3:1 Actual: Levadiakos 5:2 #Levadiakos#Volos 2026-05-03 14:00 UTC OFI vs. Aris Thessalonikis Predicted outcome: OFI❌ Predicted score: 2:1 Actual: Aris Thessalonikis 0:2 #OFI#Aris 2026-05-03 16:00 UTC PAOK vs. Olympiakos Piraeus Predicted outcome: Olympiakos Piraeus❌ Predicted score: 1:2 Actual: PAOK 3:1 #PAOK#Olympiakos 2026-05-03 18:00 UTC Panathinaikos vs. AEK Athens FC Predicted outcome: AEK Athens FC❌ Predicted score: 1:2 Actual: Draw 0:0 #Panathinaikos#AEK #Football#GreeceSuperLeague1

AI match predictions

@ai_match_prediction · Post #11323 · 05.04.2026 г., 09:05

Greece Super League 1🇬🇷 2026-04-05 14:00 UTC Levadiakos vs. Aris Thessalonikis Predicted outcome: Levadiakos❌ Predicted score: 2:1 Actual: Draw 1:1 #Levadiakos#Aris 2026-04-05 14:00 UTC Volos NFC vs. OFI Predicted outcome: Draw✅ Predicted score: 2:2 Actual: Draw 1:1 #Volos#OFI 2026-04-05 16:00 UTC PAOK vs. Panathinaikos Predicted outcome: PAOK❌ Predicted score: 2:1 Actual: Draw 0:0 #PAOK#Panathinaikos 2026-04-05 18:00 UTC Olympiakos Piraeus vs. AEK Athens FC Predicted outcome: Draw❌ Predicted score: 1:1 Actual: AEK Athens FC 0:1 #Olympiakos#AEK #Football#GreeceSuperLeague1

AI match predictions

@ai_match_prediction · Post #11562 · 18.04.2026 г., 05:05

Greece Super League 1🇬🇷 2026-04-18 13:00 UTC Kifisia vs. Asteras Tripolis Predicted outcome: Kifisia❌ Predicted score: 1:0 Actual: Draw 0:0 #Kifisia#Asteras 2026-04-18 14:00 UTC Atromitos vs. Larisa Predicted outcome: Atromitos✅ Predicted score: 1:0 Actual: Atromitos 3:2 #Atromitos#Larisa 2026-04-18 15:00 UTC OFI vs. Levadiakos Predicted outcome: Draw❌ Predicted score: 2:2 Actual: OFI 2:0 #OFI#Levadiakos 2026-04-18 16:00 UTC Aris Thessalonikis vs. Volos NFC Predicted outcome: Draw❌ Predicted score: 1:1 Actual: Aris Thessalonikis 3:2 #Aris#Volos 2026-04-18 17:00 UTC Panetolikos vs. Panserraikos Predicted outcome: Panetolikos❌ Predicted score: 1:0 Actual: Panserraikos 2:3 #Panetolikos#Panserraikos #Football#GreeceSuperLeague1

AI match predictions

@ai_match_prediction · Post #11156 · 22.03.2026 г., 09:06

Greece Super League 1🇬🇷 2026-03-22 17:00 UTC Olympiakos Piraeus vs. Larisa Predicted outcome: Olympiakos Piraeus❌ Predicted score: 2:0 Actual: Draw 0:0 #Olympiakos#Larisa 2026-03-22 17:00 UTC AEK Athens FC vs. Kifisia Predicted outcome: AEK Athens FC✅ Predicted score: 3:1 Actual: AEK Athens FC 3:0 #AEK#Kifisia 2026-03-22 17:00 UTC Panetolikos vs. Panserraikos Predicted outcome: Panetolikos❌ Predicted score: 2:1 Actual: Draw 0:0 #Panetolikos#Panserraikos 2026-03-22 17:00 UTC Asteras Tripolis vs. Panathinaikos Predicted outcome: Panathinaikos✅ Predicted score: 1:2 Actual: Panathinaikos 1:2 #Asteras#Panathinaikos 2026-03-22 17:00 UTC Levadiakos vs. Atromitos Predicted outcome: Levadiakos✅ Predicted score: 2:1 Actual: Levadiakos 1:0 #Levadiakos#Atromitos 2026-03-22 17:00 UTC Aris Thessalonikis vs. OFI Predicted outcome: Aris Thessalonikis❌ Predicted score: 1:0 Actual: OFI 0:2 #Aris#OFI 2026-03-22 17:00 UTC Volos NFC vs. PAOK Predicted outcome: PAOK❌ Predicted score: 0:2 Actual: Volos NFC 2:1 #Volos#PAOK #Football#GreeceSuperLeague1