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

Резултати

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

Пребарај: #ark

当前筛选 #ark清除筛选
American Crypto©

@americancryptotrading · Post #27539 · 19.02.2026 г., 09:41

🇺🇸#ARK/USDT is bouncing from the lowerborder of the fallingwedge on the 3D chart👀 Time for a reversal📈 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27465 · 10.12.2025 г., 10:36

🇺🇸#ARK/USDT is ready to bounce from the lowerborder of the descendingtriangle on the 3D timeframe🔍 Time to long✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27119 · 13.01.2025 г., 19:13

🇺🇸#ARK/USDT has printed the symmetricaltriangle pattern on the weekly chart🧐 Time to break out📈 American Crypto©

Hashtags

Binance crypto champions

@binancecryptochampions · Post #2866 · 11.11.2025 г., 08:19

✴️Free signal-Futures ✴️ ⚡️⚡️#ARK/USDT⚡️⚡️ Signal Type: Regular (Long) Leverage: Cross (20x) Margin: 2.0% Entry Targets: 1) 0.3000 2) 0.3400 Take-Profit Targets: 1) 0.3700 2) 0.3900 3) 0.4300 Stop Targets: 1) 0.2800 🍁 Published by: @Trading_exp🍁 Join_vip: @Crypto_Futures_Spot_Payment_bot

Hashtags

Crypto

@signal_bitcoins · Post #2836 · 16.02.2024 г., 10:43

#ARK broken up the symmetrical triangle pattern on 6H Time frame,now we are waiting for the next movement 👀 ❄️@signal_bitcoins❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #2271 · 11.01.2024 г., 08:31

#ARK is moving down in a bearish channel on 6H Time frame,now hitted the ceiling of this pattern,in the case of breakout we will have good pump again 🚀 ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

Crypto

@signal_bitcoins · Post #1917 · 19.12.2023 г., 11:10

#ARK filled the Demand zone on 8H Time frame,we expect it will pump again from here,send it to the next level ⚡️ ❄️@signals_bitcoin_crypto❄️ ❄️@Shadow_support0o❄️

Hashtags

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