@premiumrosesignal · Post #5363 · 17.07.2025 г., 19:32
#SOPH Buy Setup Buying more now
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #191 · 14 дек.
Как разделить строку с shell-командой на отдельные аргументы в виде списка? Если сделать просто сплит по пробелу то получим то что надо, кроме случаев со вставками текста с пробелами. Например так: >>> '-arg "I Am Groot"'.split(' ') ['-arg', '"I', 'Am', 'Groot"'] Чтобы учитывать текст в кавычках как единый аргумент можно воспользоваться функцией shlex.split() Кто читает мой канал давно, уже в курсе. А что делать, если нужно обратное действие? Объединить аргументы из списка в строку и при этом добавить кавычки в аргумент с пробелами. Конечно, если вы используете subprocess то он сам всё разрулит. Но если вам нужна именно команда одной строкой, то можно воспользоваться готовой функцией в том же subprocess. >>> from subprocess import list2cmdline >>> list2cmdline(['-arg', 'I Am Groot']) '-arg "I Am Groot"' Он также позаботится об экранировании уже имеющихся кавычек >>> list2cmdline(['-arg', 'I Am "Groot"']) '-arg "I Am \"Groot\""' А вот так он может "схлопнуть" в команду JSON >>> list2cmdline(['--json', json.dumps({'key': 'value'})]) '--json "{\"key\": \"value\"}"' _______________ Возможно кто-то спросит, а зачем соединять аргументы в строку если subprocess сам это сделает а os.system не наш путь? Мне как-то потребовалось отправлять команду на удалённое выполнение и в API поддерживалось указание команды только строкой. Так что всякое бывает) #libs#basic
Пребарај: #soph
@premiumrosesignal · Post #5363 · 17.07.2025 г., 19:32
#SOPH Buy Setup Buying more now
Hashtags
@premiumrosesignal · Post #5352 · 16.07.2025 г., 17:39
#SOPH Buy Setup
Hashtags
@pumpleaks · Post #1291 · 28.07.2025 г., 11:58
LONGING #SOPH NOW Exchange: Binance Futures Fully bottomed, easiest 2x of the alt season. Filling our bags at current💰 https://www.binance.com/en/futures/SOPHUSDT
Hashtags
@wallstreetgems · Post #1193 · 28.07.2025 г., 11:58
LONGING #SOPH NOW Exchange: Binance Futures Fully bottomed, easiest 2x of the alt season. Filling our bags at current💰 https://www.binance.com/en/futures/SOPHUSDT
Hashtags
@pepe_pumps_signals · Post #701 · 31.07.2025 г., 10:44
#SOPH Update (Binance Futures) Reached : $0.0458✅ Profit: 132% on just 5x lev🚀 Taking some more profits and moving stops to entries, another amazing move!🔥🔥
Hashtags
@bitcoin_ethereum_ripple · Post #698 · 31.07.2025 г., 10:44
#SOPH Update (Binance Futures) Reached : $0.0458✅ Profit: 132% on just 5x lev🚀 Taking some more profits and moving stops to entries, another amazing move!🔥🔥
Hashtags
@pepe_pumps_signals · Post #697 · 28.07.2025 г., 11:58
LONGING #SOPH NOW Exchange: Binance Futures Fully bottomed, easiest 2x of the alt season. Filling our bags at current💰 https://www.binance.com/en/futures/SOPHUSDT
Hashtags
@bitcoin_ethereum_ripple · Post #694 · 28.07.2025 г., 11:58
LONGING #SOPH NOW Exchange: Binance Futures Fully bottomed, easiest 2x of the alt season. Filling our bags at current💰 https://www.binance.com/en/futures/SOPHUSDT
Hashtags
@free_crypto_signals_pumps · Post #670 · 31.07.2025 г., 10:44
#SOPH Update (Binance Futures) Reached : $0.0458✅ Profit: 132% on just 5x lev🚀 Taking some more profits and moving stops to entries, another amazing move!🔥🔥
Hashtags
@free_crypto_signals_pumps · Post #666 · 28.07.2025 г., 11:58
LONGING #SOPH NOW Exchange: Binance Futures Fully bottomed, easiest 2x of the alt season. Filling our bags at current💰 https://www.binance.com/en/futures/SOPHUSDT
Hashtags
@cryptoarsenal · Post #62347 · 06.04.2026 г., 15:54
🎰#SOPH buying 🔫 108K USDT in 4 min (51%) on Binance P: 0,00893 ⬆️ (4,57%) Vol 24h: 316K USDT Last 8 d ago #CEXTrack
@tradeandinvest_ann · Post #602 · 18.07.2023 г., 15:26
🎙 SophiaVerse MOON SHEET announcement *INVEST REPORT project rating 10/10* ⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️ *INVEST REPORT investment rating 9/10* ⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️ *INVEST REPORT product rating 8/10* ⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️ SophiaVerse is a project that aims to bring artificial general intelligence (AGI) to the Web3 metaverse. It is a partnership between Hanson Robotics and the SingularityNet Foundation, and it uses the renowned Sophia Robot as its testbed. SophiaVerse have upcoming 2 IDO like SEEDIFY and singularitydao. Singularitydao Round 1 just started and will finish at 20TH JULY 2023 23.59 UTC. ✅About SophiaVerse Finance token metric - Token name: #SOPH - IDO price: 0,03$ - Initial price: 0,03$ - Total Supply: 1,000,000,000 $SOPH - IDO: ACTIVE ON SINGULARITYDAO ✅ Follow Project Media 1️⃣Website 2️⃣Twitter 3️⃣Discord 4️⃣Telegram #SOFH#IDO#Fundraising
Hashtags