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

Резултати

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

Пребарај: #huno

当前筛选 #huno清除筛选
PT风向旗

@Ptfxq · Post #693 · 01.08.2024 г., 15:29

#hawkeuno#huno Today's update consolidates changes that have been made to the site since January 2024, including our new IRC service that was introduced in Spring 2024. Users will find some QoL changes to the Tiers pages and be able to make Requests for Internal Releases only. Dothraki and above will find some welcome relief if they are to be demoted. For more details, head to our Site Changelog via the footer below or the INFO menu up top.

PT风向旗

@Ptfxq · Post #278 · 27.07.2022 г., 22:52

#hawke-uno #HUNO#开放注册 https://www.hawke.uno/register/null Background hawke-uno (better known as HUNO) is an HEVC-focused private tracker built as part of the wider hawke-one ecosystem of entertainment services. Launched in January 2022, HUNO has been going through a beta period of design, development, and testing with help from our small but incredible user-base. We’ve also had an influx of users via r/opensignups on two previous occasions since launch. Today we’re starting our last planned round of signups after which the tracker will no longer welcome users openly. HEVC-enthusiasts, aspiring uploaders, experienced moderators, and community lovers are especially welcome. Notable Features Focus: HEVC/AVC Remuxes + H265/4 WEB + x265 Encodes Platform: Customized Unit3d codebase Automation: Upload API, RSS feeds, Upload Script (IRC soon) Peering: Guaranteed seeding for Qualifying Uploads Sign-up Bonuses: 1.95 TB Buffer, 500 Ratio, Global Double Upload Internal Groups: HONE WEB, HONE Encodes, TAoE, Vyndros Special: Internal Economy, Reward-based Seeding, Customized UI, 2FA Current Stats Activated / Total Users: 1,069 / 1,073 Peers: 13,745 Active / Total Torrents: 3,264 / 3,276 Total Torrent Size: 38.84 TB Real Total Traffic: 324 TB

PT风向旗

@Ptfxq · Post #616 · 20.03.2024 г., 13:59

#hawkeuno#HUNO#IRC The HUNO IRC server is now back online with a completely revamped and a much more secure experience. Users no longer need to register on the server nor do they need to manually validate their accounts for announce access. Instead, the server now fully supports dynamic authentication directly from the HUNO site, allowing us to fully lockdown the account activation process. If you're in the White Walkers tier or above, visit our IRC guide in the NIFTY menu up top to get started.