TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #84 · 13 мај

В продолжение прошлого поста про цифры в мире строк. Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения? Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами. Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально. В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐" Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой >>> '⒌'.isdigit(), '⒌'.isnumeric() True, True Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает. >>> '5.'.isdigit(), '5.'.isnumeric() False, False А еще есть такие символы >>> '⑴⑵⑶⑷⑸'.isdigit() True >>> '🄁🄂🄃'.isdigit() True Но они не преобразуются в десятичные цифры >>> '⒈'.isdecimal() False >>> '🄃'.isdecimal() False >>> '⑶'.isdecimal() False #basic

Hashtags

Резултати

Пронајдени 5 слични објави

Пребарај: #stopamr

当前筛选 #stopamr清除筛选

#FactFriday Feeling better doesn’t mean the infection is gone. Stopping antibiotics without proper guidance can fuel Antimicrobial Resistance (AMR) making infections harder to treat. ✔️Always follow your healthcare provider’s advice. ✔️ Only use antibiotics when prescribed ✔️ Always complete your dose ✔️ Take antibiotics exactly as prescribed ✔️ Don’t stop, skip, or share medications. ✅Your actions today protect your health tomorrow.! #FactFriday#StopAMR#PublicHealth#NCDCNigeria

💊 Misuse of Antibiotics makes them dangerous. 💯Protect your health and help fight Antimicrobial Resistance (AMR) by avoiding self-diagnosis. Always consult a qualified healthcare professional and get a prescription before taking antibiotics✅️ Together we can Fight Antimicrobial Resistance (AMR)and protect the effectiveness of antibiotics for ourselves and future generations.💪 Use antibiotics responsibly, save lives!! #StopAMR#GlobalHealth#NCDCNigeria

#Antimicrobial Resistance (AMR) is a growing global health threat — but together, we can prevent it! 🚫💊 👉 Don’t self-medicate 👉 Complete your prescriptions 👉 Don’t share leftover drugs 👉 wash hands frequently with soap under running water 👉 Stay protected with vaccines Let’s all take responsibility in the fight against AMR. 💪🌍 #StopAMR#StaySafe#NCDCNigeria

Antibiotics are lifesavers when used correctly but misuse can make infections harder to treat. 🦠💊 #AntimicrobialResistance (AMR) is a growing public health threat caused by self-medication, incomplete doses, and improper antibiotic use. Protect yourself and others by using antibiotics only as prescribed. ✅ Complete your medications ✅ Avoid self-medication ✅ Practice good hygiene ✅ Seek medical care when symptoms persist Together, we can fight AMR and keep treatments effective for the future. #StopAMR#HealthAwareness#NCDCNigeria#StaySafe