@ncdcgov · Post #4348 · 09.08.2024 г., 09:38
Have you ever heard about #YellowFever❓ What causes it and how does it spread❓ Share your knowledge about #YellowFever with us in this short survey⬇️ 📋 https://forms.gle/QA83FP1XsrhHnXaBA
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #yellowfever
@ncdcgov · Post #4348 · 09.08.2024 г., 09:38
Have you ever heard about #YellowFever❓ What causes it and how does it spread❓ Share your knowledge about #YellowFever with us in this short survey⬇️ 📋 https://forms.gle/QA83FP1XsrhHnXaBA
Hashtags
@ncdcgov · Post #3865 · 15.06.2023 г., 09:04
#YellowFever is transmitted through the bite of an infected mosquito. If you experience any of the following symptoms: Bleeding (from the nose, ears, or mouth) ➡️Sudden fever ➡️Body pain ➡️Severe headache Report to a health care facility near you immediately
Hashtags
@ncdcgov · Post #3838 · 16.05.2023 г., 09:34
#Yellowfever is transitted through the bite of an infected mosquito. If you experience any of the following symptoms: Bleeding (from the nose, ears, or mouth) Sudden fever Body pain Headache Report to a health facility near you immediately
Hashtags
@ncdcgov · Post #3868 · 20.06.2023 г., 08:04
#Yellowfever is a vaccine-preventable disease! A single dose of yellow fever vaccine keeps you protected for life. Visit a primary healthcare facility close to you to get the vaccine. #TakeResponsibility to stay safe and healthy.
Hashtags
@ncdcgov · Post #3864 · 14.06.2023 г., 09:00
Mosquito control helps reduce the risk of #Yellowfever infection. Ensure you: ✅Get rid of stagnant water ✅Keep your environment clean ✅Keep your water containers covered properly ✅Wear protective clothing to prevent mosquito bites #TakeResponsibility
Hashtags
@ncdcgov · Post #4318 · 26.06.2024 г., 11:38
As with #cholera, cases of #yellowfever also increase during the rainy season. Mosquito control helps reduce the risk of #Yellowfever infection. Ensure you: ✅Get rid of stagnant water ✅Keep your environment clean ✅Keep your water containers covered properly ✅Wear protective clothing to prevent mosquito bites #TakeResponsibility
@ncdcgov · Post #3736 · 17.02.2023 г., 09:59
A clean environment helps to prevent the spread of infectious diseases. Practice proper environmental hygiene at all times to prevent the spread of diseases such as #LassaFever, #Cholera, #COVID19 and #YellowFever.
@ncdcgov · Post #3872 · 23.06.2023 г., 09:22
A suspected case of #YellowFever is any person with sudden fever, vomiting, serious back pain, with yellowness of the eye and skin appearing within 14 days. Take all sick persons to a healthcare facility immediately for accurate diagnosis and treatment. #YellowFeverInfo
Hashtags
@ncdcgov · Post #4330 · 15.07.2024 г., 09:46
Our guidelines on Infection Prevention & Control for #ViralHemorrhagicFevers include standard operating procedures and checklists to be used in the care & management of VHFs such as #LassaFever & #YellowFever. Healthcare workers are urged to read & share via 🔗https://ncdc.gov.ng/themes/common/docs/protocols/341_1707300274.pdf
@ncdcgov · Post #3703 · 24.01.2023 г., 12:18
Our guidelines on Infection Prevention & Control for #ViralHemorrhagicFevers include standard operating procedures & checklists to be used in the care & management of VHFs such as #LassaFever & #YellowFever Healthcare workers are urged to read & share via https://ncdc.gov.ng/themes/common/docs/protocols/111_1579986179.pdf
@ncdcgov · Post #3819 · 27.04.2023 г., 08:32
#Yellowfever is a vaccine-preventable disease spread through the bite of infected mosquitoes. A single dose of the yellow fever vaccine keeps you protected for life. #GetVaccinated #WorldImmunisationWeek
@ncdcgov · Post #4524 · 06.09.2025 г., 11:48
#Yellow Fever is an acute viral infection spread by the bite of infected mosquitoes . The disease can cause mild illness in some, but in severe cases it may lead to life-threatening complications. 👉 Protect yourself and those around you by: ✔️ Getting vaccinated ✔️ Preventing mosquito bites ✔️ Seeking medical care if symptoms appear Together, we can eliminate the threat of Yellow Fever. 💪✨ #YellowFever#StaySafe#HealthyLiving#NCDCNigeria