@anatomyarthub · Post #5116 · 15.05.2025 г., 04:25
#лицо#face @anatomyarthub
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
Пребарај: #face
@anatomyarthub · Post #5116 · 15.05.2025 г., 04:25
#лицо#face @anatomyarthub
@libreware · Post #1048 · 22.02.2022 г., 03:21
Random Face Generator A Cross-Platform app to Generate Faces of (non-existing) People Random Face Generator is a flutter app to generate random faces. The Generated faces do not actually exist in real life.This app uses the thispersondoesnotexist and the fakeface API. Each image has been pre-analyzed by an AI algorithm called pypy-agender to identify the gender and age. Download - https://github.com/adityar224/Random-Face-Generator/releases https://github.com/adityar224/Random-Face-Generator #Face#Generator#AI @foss_Android
Hashtags
@AloneSnowflake · Post #192 · 15.11.2023 г., 00:50
๛ᴀᴘᴘʟʏ ᴛʜᴇᴍᴇ🤍 ๛ᴀᴘᴘʟʏ ᴛʜᴇᴍᴇ ᴛɢx ๛sᴇᴛ ᴡᴀʟʟᴘᴀᴘᴇʀ ๛ᴊᴏɪɴ ᴄʜᴀɴɴᴇʟ🩶 #Girl#Gray#Face#Aesthetic
Hashtags
@googlefactss · Post #40579 · 23.01.2026 г., 23:05
The glabella is the smooth area of skin between your eyebrows and above your nose. It helps show facial expressions like frowning. 👁️🗨️🙂 @googlefactss #Glabella#Face#BodyFacts
Hashtags
@blackwallp · Post #68098 · 04.04.2026 г., 05:35
#девчата#лицо#girls#face 🎥Videowallpaper |😀Emoji |🎼Ringtone
@anatomyarthub · Post #5228 · 16.06.2025 г., 10:38
#референсы#лицо#references#face @anatomyarthub
Hashtags
@anatomyarthub · Post #2945 · 15.04.2024 г., 10:25
#лицо#референсы#face#references @anatomyarthub
Hashtags
@anatomyarthub · Post #2798 · 17.03.2024 г., 11:51
#референсы#лицо#references#face @anatomyarthub
Hashtags
@anatomyarthub · Post #2788 · 16.03.2024 г., 11:43
#референсы#лицо#references#face @anatomyarthub
Hashtags
@anatomyarthub · Post #2712 · 01.03.2024 г., 06:10
#референсы#references#лицо#face @anatomyarthub
Hashtags
@testflightynoti · Post #37945 · 09.05.2026 г., 19:52
#Aww#That#Face Join the Aww… That Face beta on ✈️#TestFlight 🔗 Link: https://testflight.apple.com/join/XXjasct4 Shared by Dimitri
Hashtags
@googlefactss · Post #40692 · 22.02.2026 г., 15:02
The nasion is the point where the frontal bone and the two nasal bones meet, located right between your eyes at the top of your nose bridge. It’s a key landmark in facial anatomy and measurements. 👃📏 [Source picture] @googlefactss #Nasion#Face#AnatomyFacts
Hashtags