@Dogdata · Post #2235 · 20.07.2020 г., 21:05
#Bone live on Coingecko🚀🧨 👉https://www.coingecko.com/en/coins/bone #DogData🐾
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
Пребарај: #dogdata
@Dogdata · Post #2235 · 20.07.2020 г., 21:05
#Bone live on Coingecko🚀🧨 👉https://www.coingecko.com/en/coins/bone #DogData🐾
@Dogdata · Post #2316 · 31.07.2020 г., 17:09
Happy #EidMubarak Best wishes for all DogData Muslim Community Thank you for your kind support 🙏 #DogData#Dogs#EidMubarak 🤩🚀📈😍🤩🚀📈😍🤩🚀📈
Hashtags
@Dogdata · Post #2394 · 14.08.2020 г., 11:08
DogData community🐾 Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@Dogdata · Post #2392 · 13.08.2020 г., 19:17
DogData community🐾 Everyone should be interested in getting this. Let's show that we are big, let's show that our community is huge ❗️❗️ Support us and vote for DogData🙏🐾 Please tag 👇 @FaceBook4Dog#ethbn#bone#dogdata https://twitter.com/gate_io/status/1293863802019119105?s=09 👆👆👆
@dogdata · Post #4351 · 08.11.2023 г., 07:01
Let’s bring the Dogs Data to TikTok Join the 🐾 TikTok community Like and share our videos their whenever you can https://www.tiktok.com/@kennel.ai?_t=8h0SUOsjUHI #DogData #$DOGS #Web3#DogBreeder#DogNFT
Hashtags
@dogdata · Post #4338 · 02.11.2023 г., 07:01
Let’s bring the Dogs Data to TikTok Join the 🐾 TikTok community Like and share our videos their whenever you can https://www.tiktok.com/@kennel.ai?_t=8h0SUOsjUHI #DogData #$DOGS #Web3#DogBreeder#DogNFT
Hashtags
@Dogdata · Post #2434 · 19.08.2020 г., 05:32
This is the first of the articles on DogData👏👏 #ETHBN#dogdata#publish0x 👉https://www.publish0x.com/dogdata/mydogdata-xnlwvqz Please rate this article👍🐾
Hashtags
@Dogdata · Post #2497 · 09.09.2020 г., 13:47
💸DogData Wallet 💸 🗓Launched This Week All who registered on the DogData web page should feel free to check up their DogData wallet 🚀 👉https://t.co/JNmxHEyQWw #DogData#Dogs#wallet#cryptocurrencyhttps://t.co/In7tQYMYio
@Dogdata · Post #2453 · 25.08.2020 г., 08:50
🚨Amazing news!📢 We were chosen to be listed on Bitforex CApp!😱🚀 #DogData#Bitforex#Capp
@Dogdata · Post #2271 · 26.07.2020 г., 09:28
🚨🚨TODAY 🚨🚨 #26 July 2020 LIVE AMA🤩📣 #DogData CFO Thomas Melchior With the support #EXCOINCIAL Team 🔴Get your questions prepared. 🔴 Maximum 2 questions per person. THE EVENT HOSTED ON #AFRICUNIA TV Facebook: https://www.facebook.com/africuniatv Instagram: https://www.instagram.com/africuniatv Zoom: https://zoom.us/j/6331039454
Hashtags
@dogdata · Post #4371 · 12.12.2023 г., 07:31
$Dogs token is the governance token for Kennel.Ai platform Web3 on chain platform Where pet dog breeders can tokenise pet dogs using NFT Blockchain is the best way to decentralise dog data Blockchain has created for pet dog breeders the opportunity to manage the industry themselves instead of having to pay and being governed by a centralised organisation #DogData#FCI#DogBreeder#blockchain#Decentralised
@dogdata · Post #4360 · 23.11.2023 г., 07:01
$Dogs token is the governance token for Kennel.Ai platform Web3 on chain platform Where pet dog breeders can tokenise pet dogs using NFT Blockchain is the best way to decentralise dog data Blockchain has created for pet dog breeders the opportunity to manage the industry themselves instead of having to pay and being governed by a centralised organisation #DogData#FCI#DogBreeder#blockchain#Decentralised