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

Резултати

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

Пребарај: #chillguy

当前筛选 #chillguy清除筛选
Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26461 · 27.11.2025 г., 19:33

🚀🚀 75% Profit on #CHILLGUY/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget ✅✅ All target completed - Trade Closed 👁‍🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals

Hashtags

Fed. Russian Insiders ®

@FedRussianInsidersVip4Free · Post #6914 · 25.11.2025 г., 11:10

🔥#CHILLGUY Update🔥 Target 1 : $0.020✅ Profit: 61% on just 5x lev🚀 Boom! Just as expected, and our next signals are about to be even bigger🔥

Hashtags

Fed. Russian Insiders ®

@FedRussianInsidersVip4Free · Post #6912 · 24.11.2025 г., 19:18

LONGING $CHILLGUY HERE Exchanges: Binance Futures The bottom is in for #CHILLGUY, ready to become the biggest meme gainer of the bull market Entry: Below 0.019 Targets: 0.020 - 0.021 - 0.023 - 0.027 - 0.032 - 0.052 - 0.077 - 0.102 - 0.142 - 0.194 - OPEN SL: Below 0.0147

Hashtags

Pump Leaks

@pumpleaks · Post #1590 · 24.11.2025 г., 20:18

#CHILLGUY Breaking out, BTC fully bottomed and the next leg of the bull market is starting All the liquidity we needed for a turbo bullish move has been reached. Adding more #CHILLGUY here🚀

Hashtags

Pump Leaks

@pumpleaks · Post #1589 · 24.11.2025 г., 19:19

LONGING $CHILLGUY HERE Exchanges: Binance Futures The bottom is in for #CHILLGUY, ready to become the biggest meme gainer of the bull market Entry: Below 0.019 Targets: 0.020 - 0.021 - 0.023 - 0.027 - 0.032 - 0.052 - 0.077 - 0.102 - 0.142 - 0.194 - OPEN SL: Below 0.0147

Hashtags

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