Вы заметили что с интерактивной консолью из прошлого поста что-то не так? Что происходит если нажать стрелки вверх/вниз? Полный бардак!
Давайте поправим это дело!
Для сохранения и загрузки истории будем использовать специальный модуль readline.
Что добавлено?
🔸 Сохранение истории команд с возможностью выбора предыдущих (клавиши ⬆️⬇️ )
🔸 Сохранение истории в файл перед выходом из интерактива для будущих сессий
🔸 Автокомплит по нажатию клавиши TAB
🔸 Cписок вариантов автокомплита по двойному нажатию TAB
Код забираем здесь ↗️
#tricks#source
💊🇺🇸FDA APPROVES BREAKTHROUGH DRUGS FOR RARE DISEASES
🔹 Yuviwel approved Feb 27 for dwarfism growth — first-ever treatment for kids 👶
🔹 Loargys gets green light for ultra-rare Arginase 1 Deficiency 🧬
🔹 Bysanti breakthrough schizophrenia drug hits market February 20th 🧠
🔹 Wellcovorin approved March 10 for cerebral folate deficiency 🧪
🔹 Takeda's narcolepsy drug oveporexton submits for late March review 😴
5 novel drug approvals in first quarter — fastest pace since 2023! 📈
Rare disease patients get hope as FDA accelerates orphan drug pipeline... 🙏✨
#FDA#MedicalBreakthrough#RareDiseases#DrugApproval
@america
Amanda Smith, 35, had Type 1 diabetes and needed insulin daily. In February 2023, doctors gave her new islet cells made from stem cells. By August, she no longer needed insulin because her body made it again. This treatment helped her live without constant insulin shots.💉🧬
[Read more]
@googlefactss
#StemCellTherapy#DiabetesTreatment#HealthFacts#MedicalBreakthrough
New kidney treatments help people with kidney disease protect and preserve their kidney function. New drugs slow disease progression. Doctors can target the exact cause of kidney problems. Early tests catch issues sooner, and combination therapies help manage complications like anemia. People with kidney disease have more options to maintain their health.
🩺💊🧬✨
[Read more]
@googlefactss
#KidneyHealth#CKD#MedicalBreakthrough#EarlyDetection#PrecisionMedicine#HealthyLife