@borkena · Post #5194 · 05.11.2025 г., 05:47
Ethiopian Defense Chief Of Staff Threatens Military Action Against TPLF. Read. https://borkena.com/2025/11/05/ethiopian-defense-chief-of-staff-threatens-military-action-against-tplf/#Ethiopia#TPLF#news
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #83 · 11 мај
У строки в Python есть два очень похожих метода. На столько похожих что кажется они делают одно и тоже. Это метод isdigit() и isnumeric() Давайте посмотрим зачем нам два одинаковых метода? И так ли они одинаковы? Очевидно что isdigit() говорит нам, состоит ли строка только из чисел 0-9 >>> '12'.isdigit() True >>> '12x'.isdigit() False >>> '-12'.isdigit() False >>> '12.5'.isdigit() False Можно предположить что isnumeric() делает более глубокий анализ и распознаёт в строке float или отрицательное число. >>> '15'.isnumeric() True >>> '-15'.isnumeric() False >>> '15.2'.isnumeric() False Нет, всё так же как и с другим методом. В чем же тогда разница? Для начала посмотрим следующие примеры: >>> '5'.isdigit(), '5'.isnumeric() # Обычная цифра 5 # True, True >>> '꧕'.isdigit(), '꧕'.isnumeric() # Яванская 5 # True, True >>> '෩'.isdigit(), '෩'.isnumeric() # Синхала 3 # True, True >>> '৩'.isdigit(), '৩'.isnumeric() # Бенгальская 3 # True, True >>> '༣'.isdigit(), '༣'.isnumeric() # Тибетская 3 # True, True >>> '³'.isdigit(), '³'.isnumeric() # 3 верхний индекс (степень) # True, True >>> '𝟝'.isdigit(), '𝟝'.isnumeric() # Математическая двойная 5 # True, True >>> '๔'.isdigit(), '๔'.isnumeric() # Тайская 4 # True, True >>> '➑'.isdigit(), '➑'.isnumeric() # 8 в круге # True, True А теперь примеры в которых, по мнению Python, результаты не равны >>> '¾'.isdigit(), '¾'.isnumeric() # дробь три четверти # False, True >>> '⅕'.isdigit(), '⅕'.isnumeric() # дробь одна пятая # False, True >>> '𒐶'.isdigit(), '𒐶'.isnumeric() # клинопись 3 # False, True >>> '三'.isdigit(), '三'.isnumeric() # 3 из унифицированной идеограммы # False, True >>> '⑩'.isdigit(), '⑩'.isnumeric() # цифра 10 в круге # False, True >>> 'Ⅳ'.isdigit(), 'Ⅳ'.isnumeric() # Римская 4 # False, True >>> '𑇪'.isdigit(), '𑇪'.isnumeric() # Сенегальская архаическая 10 # False, True >>> '𐌢'.isdigit(), '𐌢'.isnumeric() # Этрусская цифра 10 # False, True >>> 'ↂ'.isdigit(), 'ↂ'.isnumeric() # Римская цифра 10000 # False, True >>> '〇'.isdigit(), '〇'.isnumeric() # Символ ККЯ ноль # False, True Получается, что isdigit() говорит нам, является ли символ десятичной цифрой или спецсимволом, имеющим цифирное значение после преобразования. В свою очередь isnumeric() включает все дополнительные символы юникода которые имеют отношения к числовым и цифровым представлениям. Ну и пара примеров в которых в обоих случаях символ не является числом, это эмодзи. >>> '🕙'.isdigit(), '🕙'.isnumeric() # эмодзи 10 часов # False, False >>> '7️⃣'.isdigit(), '7️⃣'.isnumeric() # эмодзи 7 # False, False Также есть еще один дополнительный и весьма полезный метод isdecimal(). Он нам сообщает, можно ли из указанного символа сделать простую десятичную цифру. То есть сработает ли метод int(x) >>> '෩'.isdecimal(), int('෩') # Синхала 3 # True, 3 >>> '➑'.isdecimal(), int('➑') # 8 в круге # False, ValueError Какие выводы? 🔸 При определении цифры в строке isdigit() подходит лучше чем isnumeric(), но оба не гарантируют успешную конвертацию в int 🔸 Для однозначного определения возможности преобразования строки в int лучше подходит метод isdecimal() 🔸 Для однозначного определения символов 0...9 лучше использовать regex Полный список символов юникода которые определяются как numeric #basic
Hashtags
Пребарај: #tplf
@borkena · Post #5194 · 05.11.2025 г., 05:47
Ethiopian Defense Chief Of Staff Threatens Military Action Against TPLF. Read. https://borkena.com/2025/11/05/ethiopian-defense-chief-of-staff-threatens-military-action-against-tplf/#Ethiopia#TPLF#news
@addisstandardeng · Post #21267 · 31.01.2026 г., 18:15
#TPLF welcomes #AU call for restraint, reaffirms commitment to dialogue The Tigray People’s Liberation Front (TPLF) has welcomed a call by the Chairperson of the African Union Commission, Mahmoud Ali Youssouf, urging restraint amid renewed tensions in Ethiopia’s Tigray region, reaffirming that dialogue remains the only viable path to resolving outstanding issues with the federal government. In a letter sent late on Saturday and addressed to the AU Commission Chairperson, the TPLF said it appreciates the African Union’s engagement in support of peace and stability in Ethiopia, noting that it takes “positive note” of the AU’s concern over recent developments in Tigray. The party further expressed its readiness to engage constructively in any dialogue initiative facilitated by the African Union, including through the AU High-Level Panel on Ethiopia, aimed at advancing “peace, confidence-building, and reconciliation.” https://addisstandard.com/tplf-welcomes-au-call-for-restraint-reaffirms-commitment-to-dialogue/
@borkena · Post #6200 · 22.04.2026 г., 05:10
Interim Administration Responds To TPLF Move To Take Power by Force. Read more. https://borkena.com/2026/04/21/tigray-interim-administration-responds-to-tplf-move-to-take-power-by-force/#Ethiopia#news#Tigray#TPLF
@borkena · Post #6176 · 17.04.2026 г., 23:04
ህወሓት ደብረጽዮን ገብረሚካኤል ክልሉን እንዲያስተዳድሩ ወሰነ https://shorturl.at/417qY#Ethiopia#News#TPLF#Tigray
@borkena · Post #5807 · 19.02.2026 г., 14:11
Three senior TPLF Military Commanders Reportedly arrive in Addis Ababa. Read more. https://borkena.com/2026/02/19/ethiopia-three-senior-tplf-military-commanders-reportedly-arrive-in-addis-ababa/#Ethiopia#news#TPLF#Tigray
@borkena · Post #5596 · 21.12.2025 г., 16:41
Tigray Interim Administration President To Meet Federal Authorities in Addis Ababa. Read. https://borkena.com/2025/12/21/tigray-interim-administration-president-to-meet-federal-authorities-in-addis-ababa/#Ethiopia#News#TPLF#Tigray
@borkena · Post #5822 · 21.02.2026 г., 13:24
To Prime Minister Abiy Ahmed: A Peaceful Path Forward in Tigray. Read more. ard in Tigray https://borkena.com/2026/02/21/ethiopia-to-prime-minister-abiy-ahmed-a-peaceful-path-forward-in-tigray/#Ethiopia#TPLF#AbiyAhmed
Hashtags
@addisstandardeng · Post #21623 · 05.03.2026 г., 15:34
News: #Tigray rebels say #Ethiopian troops preparing for war Ethiopian federal authorities are preparing "to wage a war against Tigray," a senior official from this northern regional state told AFP on Wednesday, raising fears of a new conflict. Tigray emerged in 2022 from a two-year war that saw federal forces, backed by militias and the Eritrean army, clash with rebels from the Tigray People's Liberation Front (#TPLF). The TPLF dominated Ethiopian politics for some 30 years before current Prime Minister Abiy Ahmed, a non-Tigrayan, took power in 2018. At least 600,000 people were killed in the conflict, according to estimates from the African Union. A ceasefire held for more than two years, but clashes between federal and Tigrayan forces broke out again in November 2025 and January 2026. Large numbers of federal troops have for several weeks been massed at the Tigray border, where.... https://web.facebook.com/AddisstandardEng/posts/pfbid023a9Gk4wS4Zc9q1exiF73ypsGSrQ1ubLT6Pg7Hv5gRNoJDmMEsv8KpNyvcM73Nq8il
Hashtags
@borkena · Post #6238 · 30.04.2026 г., 16:43
The rump TPLF’s Beating of War Drums. Read. https://borkena.com/2026/04/30/ethiopia-the-rump-tplfs-beating-of-war-drums/#Ethiopia#Politics#TPLF#Tigray@reda_getachew
@borkena · Post #5214 · 08.11.2025 г., 03:01
TPLF Alleges Federal Gov’t “Carried Out Drone Strike on Tigray Forces” Read more. https://borkena.com/2025/11/07/tplf-alleges-federal-govt-carried-out-drone-strike-on-tigray-forces/#Ethiopia#TPLF#Afar
@addisstandardeng · Post #21794 · 21.03.2026 г., 10:17
#Op_ed: Ghosts of Governance: Opposition paralysis, failure of political imagination in post-war #Tigray The most dangerous moment for a post-war society is when paralysis becomes normal, “a condition that has gripped Tigray for too long,” writes Getachew Gebrekiros Temare. He argues, “War destroyed infrastructure, displaced millions, and shattered institutions,” yet the deeper crisis remains political. Factionalism within the #TPLF and fragmentation among opposition parties have left society without coherent leadership. Opposition rhetoric often functions as controlled dissent rather than driving meaningful change. He notes, “The cumulative consequences of fragmentation, pseudo-analysis, and political hesitation are now impossible to ignore.” Getachew emphasizes that the solution requires “the emergence of a political movement grounded in public interest rather than personal ambition.” https://addisstandard.com/?p=55998
@borkena · Post #6230 · 29.04.2026 г., 12:20
TPLF Demands Tadesse Worede To Hand Over Power. Read more. https://borkena.com/2026/04/29/ethiopia-tplf-demands-tadesse-worede-to-hand-over-power/#Ethiopia#news#TPLF#EthiopianNews#Tigray
Hashtags