@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 #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #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