@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 #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #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