TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #183 · 23 ное.

Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux

Hashtags

Резултати

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

Пребарај: #limited

当前筛选 #limited清除筛选
电竞红单作业推荐-中文频道

@dianjingtuijian01 · Post #9351 · 12.04.2026 г., 11:23

【#Yunxiao Sports】https://yunxiao61.vip(reputation disk)🥰 (reputation disk)🥰 😀😀😀😀😀 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀 🤭No IP limit (you can deposit and withdraw via U for the first time)🥰 🤭"Zero review and worry-free for large amounts" 🤭The world's most prestigious betting market from Europe! The platform supports USDT, GOpay, OKpay, EBpay, WeChat, Alipay, virtual currency and other payment deposits and withdrawals👉 (1:1 for member EB sales) 🤭Open an account and get free gifts ✅#Limited time event: first deposit 300 will get you 178. If you deposit 500, you will get 288. 🤭Large customers with a single deposit of 1 million (no need to worry about making large withdrawals). Financial analysts are welcome to compete in Dog Village ❗️ 🤭Important things to say twice: Withdraw money in seconds without stuck money Withdraw money in seconds without stuck money❗️ ⚡️⚡️⚡️⚡️⚡️⚡️ ⚡️⚡️⚡️⚡️⚡️⚡️⚡️ 🤭The daily deposit bonus for the first deposit will not stop, 2% will be given for daily deposit, and more will be given on weekends. There are also monthly cash rebates, etc. 🤭If you meet the deposit requirement of 200,000 within 30 days of registration, you will receive a young model or the latest Apple mobile phone. 🌐Yunxiao Sports:https://yunxiao61.vip 🌐Event Specialist: @qiuxiaomi9876🥰 🤤😪😮‍💨😵😛😝😜🤪🤨🧐🤓😎🥸 🤭e-sports sports agreement to stabilize channels👉✈️@dianjingtuijian01

电竞红单作业推荐-中文频道

@dianjingtuijian01 · Post #9280 · 07.04.2026 г., 09:03

【#Yunxiao Sports】https://yunxiao61.vip(reputation disk) 🥰 (reputation disk) 🥰 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 😀 🤭No IP limit (you can deposit and withdraw via U for the first time) 🥰 🤭"Zero review and worry-free for large amounts" 🤭The world's most prestigious betting market from Europe! The platform supports USDT, GOpay, OKpay, EBpay, WeChat, Alipay, virtual currency and other payment deposits and withdrawals👉 (1:1 for member EB sales) 🤭Open an account and get free gifts ✅#Limited time event: first deposit 300 will get you 178. If you deposit 500, you will get 288. 🤭Large customers with a single deposit of 1 million (no need to worry about making large withdrawals). Financial analysts are welcome to compete in Dog Village ❗️ 🤭Important things to say twice: Withdraw money in seconds without stuck money Withdraw money in seconds without stuck money❗️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ ⚡️ 🤭The daily deposit bonus for the first deposit will not stop, 2% will be given for daily deposit, and more will be given on weekends. There are also monthly cash rebates, etc. 🤭If you meet the deposit requirement of 200,000 within 30 days of registration, you will receive a young model or the latest Apple mobile phone. 🌐Yunxiao Sports:https://yunxiao61.vip 🌐Event Specialist: @qiuxiaomi9876🥰 🤤 😪 😮‍💨 😵 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🥸 🤭e-sports sports agreement to stabilize channels👉✈️@dianjingtuijian01

KizlyarSupreme

@kizlyarsupreme · Post #1287 · 11.03.2025 г., 12:19

Друзья, представляем нож Colada, выпущенный ограниченным тиражом. Colada – это компактный нож-универсал, один из самых популярных в линейке Kizlyar Supreme. Простота, красота, завершенность - и ничего лишнего. Клинок классической формы выполнен из культовой немецкой стали PGK, а рукоять - из прочного черного композита. Сталь PGK на клинке закалена до твердости 62-63 HRC - нож отлично держит заточку и обладает потрясающим резом. Обычно при такой твердости клинки становятся хрупкими, но только не из стали PGK! Если вы хотите совместить: 🔪 отличный рез, 👌 удержание заточки 🗿 и высочайшую прочность, смело выбирайте клинок из PGK. Рукоять с выраженной шероховатой фактурой выполнена из черного G10. Нож комплектуется красивыми и удобными погружными кожаными ножнами с петлей свободного подвеса. Купить в официальном интернет-магазине◀️ #Colada#Limited#PGK

12
ПретходнаСтраница 1 од 2Следна