@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 #241 · 5 мај
Можно ли в Python создавать бинарные файлы? Конечно можно. Для этого в Python есть следующие инструменты: ▫️ тип данных bytes и bytearray ▫️ открытие файла в режиме wb (write binary) или rb (read binary) ▫️ модуль struct Про модуль struct поговорим в первую очередь. Файл в формате JSON или Yaml внутри себя содержит разметку данных. Всегда можно определить где список начался а где закончился. Где записана строка а где словарь. То есть формат записи данных содержит в себе элементы разметки данных. В binary-файле данные не имеют визуальной разметки. Это просто байты, записанные один за другим. Правила записи и чтения находятся вне файла. Модуль struct как раз и помогает с организацией данных в таком файле с помощью определения форматов записи для разных частей файла. Модуль struct преобразует Python-объекты в массив байт, готовый к записи в файл и имеющий определённый вид. Для этого всегда следует указывать формат преобразования (или, как оно здесь называется - запаковки). Формат нужен для того, чтобы выделить достаточное количество байт для записи конкретного типа объекта. В последствии с помощью того же формата будет производиться чтение. При этом следует помнить что мы говорим о типах языка С а не Python. Именно формат определяет, что записано в конкретном месте файла, число, строка или что-то еще. Вот какие токены формата у нас есть. Помимо этого, первым символом можно указать порядок байтов. На разных системах одни и те же типы данных могут записываться по-разному, поэтому желательно указать конкретный способ из доступных. Если этого не сделать, то используется символ '@', то есть нативный для текущей системы. В строке формата мы пишем в каком порядке и какие типы собираемся преобразовать в байты. Запакуем в байты простое число, токен "i". >>> import struct >>> struct.pack('=i', 10) b'\n\x00\x00\x00' Теперь несколько float, при этом нужно передавать элементы не массивом а последовательностью аргументов. >>> struct.pack('=fff', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Вместо нескольких токенов можно просто указать нужное количество элементов перед одним токеном, результат будет тот же. >>> struct.pack('=3f', 1.0, 2.5, 4.1) b'\x00\x00\x80?\x00\x00 @33\x83@' Теперь запакуем разные типы >>> data = struct.pack('=fiQ', 1.0, 4, 100500) я запаковал типы float, int и unsigned long long (очень большой int, на 8 байт) b'\x00\x00\x80?\x04\x00\x00...' Распаковка происходит аналогично, но нужно указать тот же формат, который использовался при запаковке. Результат возвращается всегда в виде кортежа. >>> struct.unpack('=fiQ', data) (1.0, 4, 100500) Как видите, ничего страшного! #lib#basic
Пребарај: #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