@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
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
Пребарај: #adoptable
@artbysabertoofs · Post #604 · 07.04.2026 г., 10:18
First of the few adopts I'll be doing this week! A handsome, colorful werewolf! 👀🐺 He'll be up for sale soon for $65! ❤️ #adoptable
Hashtags
@artbysabertoofs · Post #567 · 05.03.2026 г., 22:01
BIG YEEN COMIN THRU! 😤 I've got this handsome fella for sale! He's sporting a hyper t-dick (trans bits)! 👀 Something a little indulgent. 🤭 Asking price is $75! He can come with a SFW alt as well as the t-dick version seen here. ^^ DM or reply to claim! #adoptable
Hashtags
@artbysabertoofs · Post #558 · 01.03.2026 г., 19:08
Lil horse adopt ready for a new home! ❤️ Kind of a Valentine's okapi mood here... 🥹 I hope he looks nice! Asking $40 for him! You'll get character rights, high-res/small-res files, and a NSFW (sheath) alt if you desire! Base provided by @/Twistedhound - please check them out! DM or reply to claim if you're interested! #adoptable
Hashtags
@artbysabertoofs · Post #400 · 18.10.2025 г., 01:09
Offering this fella up for $75! ^^ I went for a "blood moon" themed wolf this time around! 🔴🐺 Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m3glvbc2fc2r
Hashtags
@artbysabertoofs · Post #399 · 16.10.2025 г., 18:48
Offering this fella up for $80! ^^ He's a spooky werewolf ready to romp around on Halloween! :D Feel free to DM to claim if you would like him. He comes with high-res and small res files and character rights upon purchase. Payment through PayPal invoices! #adoptable#werewolf#sheath Can't purchase but want to help? I have a post you can share if you'd like. ^^ Thank you all so much! https://bsky.app/profile/sabertoofs.bsky.social/post/3m36lkpy52s2y
Hashtags