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

Резултати

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

Пребарај: #cryptotrading

当前筛选 #cryptotrading清除筛选

Live Crypto News Today — Bitcoin, Ethereum & Altcoins (February 16, 2026) https://www.fxpremiere.com/live-crypto-news-today-bitcoin-ethereum-altcoins-february-16-2026/#crypto#cryptocurrency#cryptonews#cryptotrading FxPremiere Telegram Alerts

🟥 🟥 🟥GOYIM COIN – SOLANA GEM ALERT 🚀 📈 Strong Pump Ongoing | Heavy Volume Flow 🚀 Early buyers are already winning — next leg loading… 🔹 Chain: Solana 📈 Live on DexScreener: https://dexscreener.com/solana/ASCSDmpkbXDNRiPRKGAPiLU4Kukc6P8vgNBtNhGw3Hnf ✔️ Contract: 9S8edqWxoWz5LYLnxWUmWBJnePg35WfdYQp7HQkUpump 🐋Strong buying pressure • Healthy volume inflow • Meme narrative + active community 🚀 Official Links: 🐦Twitter (X): https://x.com/goyimcoinsol 🌎 Website: https://goyim.life/ #Solana#LowCap#CryptoTrading

Propheta Indicator Signals

@propheta_indicator · Post #23074 · 19.11.2025 г., 17:57

👆 Propheta living up to its name yet again 🔮 Reached 9th TP in the VIP PRO channel! That's why we call it the "Money Printer" 💴💷💵ACCESS TO MANUAL TRADING for 70usdt/month 👉 Looking at those reports and can't believe what you're seing? Go to our reports channel and audit us! @propheta_reports Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #cryptotrading#autotrading#cryptomarket

Propheta Indicator Signals

@propheta_indicator · Post #22867 · 07.10.2025 г., 12:13

Reached 9th TP in the VIP HTL channel! Easy $207 with a 5% entry and a $1000 deposit! VIPs getting filthy rich by the day ☺️🤑🤑ACCESS TO MANUAL TRADING for 70usdt/month 👉 Join us and earn big! Start here: t.me/ProphetaAdmin_bot Register and get bonuses up to $6,000 Binance | OKX | ByBit👈🏻click! #cryptobot#cryptotrading#eth

123•••10•••202122
ПретходнаСтраница 1 од 22Следна