@ncdcgov · Post #4380 · 16.09.2024 г., 08:18
What is #diphtheria❓ Who is most at risk of getting infected❓ What are the signs and symptoms of #diphtheria infection❓ Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
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
Пребарај: #diphtheria
@ncdcgov · Post #4380 · 16.09.2024 г., 08:18
What is #diphtheria❓ Who is most at risk of getting infected❓ What are the signs and symptoms of #diphtheria infection❓ Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4260 · 19.04.2024 г., 09:23
Share Facts NOT Fear❗ 🔗Visit our website for accurate information on #diphtheria and to stay informed! ➡️Factsheet: https://ncdc.gov.ng/diseases/info/D ➡️Public health advisory: https://ncdc.gov.ng/news/435/diphtheria-public-health-advisory-amidst-outbreak-in-nigeria ➡️Healthcare workers advisory: https://ncdc.gov.ng/news/436/diphtheria-health-advisory-for-health-care-workers-amidst-outbreak-in-nigeria ➡️Situation reports: https://ncdc.gov.ng/diseases/sitreps/?cat=18&name=An%20Update%20of%20Diphtheria%20Outbreak%20in%20Nigeria
Hashtags
@ncdcgov · Post #4258 · 17.04.2024 г., 14:10
Q: How does #diphtheria spread? A: #Diphtheria spreads easily through: ➡️Direct contact with infected people ➡️Droplets from an infected person while coughing or sneezing ➡️Contact with contaminated objects/clothing For more FAQs, watch 👇🏼 & share: 🔗 https://youtu.be/6ZAgfCBDh0c
Hashtags
@ncdcgov · Post #4253 · 15.04.2024 г., 07:59
Individuals with symptoms suggestive of #diphtheria should report to a healthcare facility immediately for diagnosis and proper treatment. Ensure you take extra precautionary measures while visiting to prevent the risk of spread. Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4237 · 30.03.2024 г., 09:26
Individuals with symptoms suggestive of #diphtheria should report to a healthcare facility immediately for diagnosis and proper treatment. Ensure you take extra precautionary measures while visiting to prevent the risk of spread. Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4236 · 29.03.2024 г., 09:03
Q: How does #diphtheria spread? A: #Diphtheria spreads easily through: ➡️Direct contact with infected people ➡️Droplets from an infected person while coughing or sneezing ➡️Contact with contaminated objects/clothing For more FAQs, watch 👇🏼 & share: 🔗 https://youtu.be/6ZAgfCBDh0c
Hashtags
@ncdcgov · Post #4233 · 27.03.2024 г., 09:14
Q: Who is at risk of #diphtheria infection? A: ➡️Children & adults who are unvaccinated or partially vaccinated with the anti-diphtheria vaccine ➡️Individuals who live in crowded or dirty environments ➡️Healthcare workers For more FAQs, watch & share👇🏼 https://youtu.be/6ZAgfCBDh0c
Hashtags
@ncdcgov · Post #4230 · 23.03.2024 г., 08:51
What is #diphtheria❓ Who is most at risk of getting infected❓ What are the signs and symptoms of #diphtheria infection❓ Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4137 · 22.12.2023 г., 08:13
Individuals with symptoms suggestive of #diphtheria should report to a healthcare facility immediately for diagnosis and proper treatment. Ensure you take extra precautionary measures while visiting to prevent the risk of spread. Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4136 · 21.12.2023 г., 08:43
What is #diphtheria? Who is most at risk of getting infected? What are the signs and symptoms of #diphtheria infection? Watch & share 👇🏼 🔗https://youtu.be/6ZAgfCBDh0c?feature=shared
Hashtags
@ncdcgov · Post #4134 · 18.12.2023 г., 15:52
Q: How does #diphtheria spread? A: #Diphtheria spreads easily through: ➡️Direct contact with infected people ➡️Droplets from an infected person while coughing or sneezing ➡️Contact with contaminated objects/clothing For more FAQs, watch 👇🏼 & share: 🔗 https://youtu.be/6ZAgfCBDh0c
Hashtags
@ncdcgov · Post #4131 · 15.12.2023 г., 08:28
Q: Who is at risk of #diphtheria infection? A: ➡️Children & adults who are unvaccinated or partially vaccinated with the anti-diphtheria vaccine ➡️Individuals who live in crowded or dirty environments ➡️Healthcare workers For more FAQs, watch & share👇🏼 https://youtu.be/6ZAgfCBDh0c
Hashtags