@NatureTravelVacationPictures · Post #1023 · 02.05.2019 г., 12:30
🌿❤️✨🍃 Baby Elephants🐘😍 #Elephants#Wildlife 💁Join Us ✅🔜@Discover_Nature 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
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
Пребарај: #elephants
@NatureTravelVacationPictures · Post #1023 · 02.05.2019 г., 12:30
🌿❤️✨🍃 Baby Elephants🐘😍 #Elephants#Wildlife 💁Join Us ✅🔜@Discover_Nature 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
Hashtags
@naturetravelvacationpictures · Post #499 · 07.04.2019 г., 12:30
🌿❤️✨🍃 Playing Babies😍😍😍🐘🐘🐘 #Elephants#Wildlife Join Us ✅🔜@Discover_Nature 🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃🍃
Hashtags
@interesting_planet_facts · Post #484 · 02.08.2025 г., 03:22
🌎 Deep in the Congo Basin, the African rainforest elephant forges secret trails through dense jungle, creating “elephant highways” that other animals use. These hidden paths help shape entire forest ecosystems by opening routes for seed dispersal and wildlife movement. ✨ #rainforest⚡#elephants⚡#ecosystems 👉subscribe Interesting Planet
Hashtags
@interesting_planet_facts · Post #1312 · 23.02.2026 г., 22:11
🌎 Elephants communicate using deep rumbles that travel through the ground as seismic vibrations. These low-frequency sounds allow herds to “hear” each other from several kilometers away, even when out of sight. ✨ #elephants⚡#communication⚡#animalbehavior 👉subscribe Interesting Planet 👉more Channels
@interesting_planet_facts · Post #783 · 19.09.2025 г., 20:22
🌎 Elephants use infrasound—low-frequency sounds below human hearing—to communicate over distances of several kilometers. These vibrations travel through the ground and air, letting herds coordinate movements and warn of threats. Elephant infrasound calls can be detected up to 10 km away in open savanna. ✨ #elephants⚡#communication⚡#animalintelligence 👉subscribe Interesting Planet
@googlefactss · Post #40697 · 24.02.2026 г., 09:20
Elephants can “listen” with their feet. Their foot pads have special nerve receptors that detect ground vibrations, including very low-frequency infrasound. Vibrations from other elephants’ rumbles or footsteps travel through the ground. Signals move through their bodies to the brain. Vibrations can also reach the inner ear through bone conduction. This helps elephants communicate over long distances and sense distant movement. 🐘🌍👣🔊 [Read more] @googlefactss #Elephants#AnimalFacts#Wildlife#Nature#Science#DidYouKnow
@borkena · Post #6155 · 14.04.2026 г., 18:28
በዓመት ከስምንት ሺህ በላይ ህጻናት ለካንሰር ተጋላጭ ናቸው መባሉ ፤ የፖሊስ ባለስልጣኗ ግድያ ፤ የቻይና ምላሽ እና ሌሎች ዜናዎች https://youtu.be/nlsyo5kl7wI"#Ethiopia#News#EthiopianNews#Amharic#Children#China#elephants
@sarconsulurals · Post #3070 · 25.01.2026 г., 03:47
💛The Power of a Mother’s Love In Kruger National Park, South Africa, an elephant cow rescued her calf as it was being swept away by a powerful current. 📹 The touching footage comes from an area affected by severe flooding. The natural disaster caused serious damage to the park’s infrastructure: people were evacuated, and some animals had to fend for themselves. According to park officials, most animals moved to higher ground in advance — but not all managed to escape the danger. 🔗Video: https://t.me/aifonline/177687 #SouthAfrica#Wildlife#Nature#Elephants#MothersLove#KrugerNationalPark
@sarconsulurals · Post #2732 · 26.10.2025 г., 05:15
🐘🍊Стадо слонов-воришек в провинции Лимпопо, ЮАР, полакомилось апельсинами, которые перевозил сломавшийся в дороге грузовик. _________________________ 🐘🍊 A herd of opportunistic elephants in Limpopo, South Africa, helped themselves to a feast of oranges transported by a truck that had broken on the road. 📹https://www.youtube.com/watch?v=-i5_brrf1cc #ЮАР#Слоны#Природа#Африка#Животные #SouthAfrica#Elephants#Wildlife#Nature#Africa
@sarconsulurals · Post #2695 · 17.10.2025 г., 07:17
🇿🇦Tembe Elephant Park🐘 The park was established in the north-eastern part of South Africa in 1983 to protect elephants migrating between South Africa and Mozambique. 🌍 It opened to visitors in 1991 and is now home to about 250 of the largest elephants in the world. 🏞 If you’re into safaris, you can also spot the rest of the Big Five — 🦁 lions, 🐆 leopards, 🦏 rhinos, and 🐃 buffalo. 🎥 Live video: 👉https://www.youtube.com/watch?v=VUJbDTIYlM4 #SouthAfrica#Nature#Safari#BigFive#Elephants#Tembe#Wildlife#Travel#Africa
@sarconsulurals · Post #2520 · 31.08.2025 г., 05:15
🐘Слоны — отличные пловцы, и это занятие им очень нравится! Они способны преодолевать расстояния до 50 км. А ещё они умеют нырять — хобот служит им дыхательной трубкой для «подводного плавания». 🤿 #Слоны#Животные#Природа#ЮАР#ИнтересныеФакты ___________________ 🐘Elephants are excellent swimmers — and they love it! They can cover distances of up to 50 km (30 miles). They also dive skillfully, using their trunks as natural snorkels. 🤿 #Elephants#Wildlife#Nature#SouthAfrica#FunFacts 🎥https://t.me/AfroPouchkine/1459