@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
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
Пребарај: #animals
@googlefactss · Post #40792 · 14.03.2026 г., 07:00
Rabbits can see behind themselves without moving their heads due to their laterally placed eyes. Their only, small blind spot is directly in front of their nose. @googlefactss#animals
Hashtags
@googlefactss · Post #40547 · 16.01.2026 г., 23:01
The scientific name for "coyote" is canis latrans, which literally means "barking dog", a fitting description for its wide variety of yips, howls, and barks used for communication, with the name coming from the Aztec word for the animal. @googlefactss#animals
Hashtags
@googlefactss · Post #40082 · 13.11.2025 г., 20:50
Female elephants stay with the same herd their entire lives. Males only remain with the herd until they are 12 to 15 years old. The Male elephants then either join a "bachelor" herd or they live alone only rejoining the females during mating season. @googlefactss#animals
Hashtags
@googlefactss · Post #39956 · 27.10.2025 г., 14:20
A zebra's teeth grow continuously throughout its lifetime, offsetting the wear of constant grazing. @googlefactss#animals
Hashtags
@googlefactss · Post #39898 · 03.10.2025 г., 11:12
The world’s largest bat is the giant golden-crowned flying fox, a rare fruit bat. It has a wingspan of 5 to 6 feet (1.5 to 1.8 m). @googlefactss#animals
Hashtags
@profile_pictures_tm · Post #16014 · 15.09.2023 г., 14:50
#Animals❤
Hashtags
@profile_pictures_tm · Post #15228 · 18.07.2023 г., 18:01
#Animals❤
Hashtags
@profile_pictures_tm · Post #14334 · 04.05.2023 г., 19:25
#Animals
Hashtags
@profile_pictures_tm · Post #12335 · 03.12.2022 г., 20:08
#Animals
Hashtags
@ekologuzenglish · Post #11860 · 09.03.2026 г., 15:02
#Animals Animals help each other too, and sometimes they do it more sincerely than humans. In nature, there are many amazing examples of cooperation: birds warn their flock about danger, dolphins support injured companions, elephants protect their calves, and some animals share food with those who are weak. This invisible bond of support and care is part of the harmony of nature. In the wild, survival often depends on cooperation and strong social connections. By observing animals, we learn a simple truth: the world is sustained not only by strength, but also by compassion, trust, and mutual help. 🐾🌿☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube.
Hashtags
@profile_pictures_tm · Post #11131 · 27.09.2022 г., 05:50
#Animals
Hashtags
@dailychannels · Post #6553 · 19.12.2025 г., 01:00
Channel: Dangerous Earth Members: ~5.44K 💢 Username: @dangerousground Description: Craters, volcanoes, avalanches, brutal animal scenes, deadly attacks by predators and many other strange displays of the forces of nature and its inhabitants. Buy ads: https://telega.io/c/dangerousground 🏷 Tags: #animals https://telegramchannels.me/channels/dangerousground
Hashtags