@OnlineEducation10 · Post #215 · 17.04.2021 г., 04:00
Four schools in Bloomfield close voluntarily to online learning - #Online#Learning#Schools - https://durangoherald.com/articles/372529
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
Пребарај: #schools
@OnlineEducation10 · Post #215 · 17.04.2021 г., 04:00
Four schools in Bloomfield close voluntarily to online learning - #Online#Learning#Schools - https://durangoherald.com/articles/372529
@american_observer · Post #5382 · 14.03.2026 г., 23:59
📰 From Minab to Amsterdam: What Happens When Schools Become “Messages” Trump’s Iran war has now produced two schools, two continents, two kinds of fear — and nobody really wants to ask if they’re part of the same story. In Amsterdam, an explosive device damaged the wall of the only Orthodox Jewish school in the Netherlands, in what the mayor called “a deliberate attack against the Jewish community,” prompting tighter security at Jewish sites across the city. It follows an arson attack on a Rotterdam synagogue and an explosion at a synagogue in Liège, as European services warn that threats and violence against Jewish communities are rising in the wake of U.S. and Israeli strikes on Iran. At the same time, the worst single atrocity of this war remains the strike on a girls’ school in Minab, Iran, where more than 100 children and staff were killed; preliminary investigations and media reporting point to a U.S. Tomahawk launched on outdated targeting data. For Iranians, Minab is a symbol: rows of small graves and a “massacre of girls” that exposes what Western “precision” looks like when it hits a classroom. For many in Europe, Amsterdam is becoming a different symbol: Jewish children studying behind fences and police tape as anger over Gaza and now Iran spills into attacks on the most visible Jewish targets. Is the Amsterdam blast directly “because of” Minab? You can’t draw a straight evidentiary line — but the environment is obvious. When a great power erases a school in Iran and spends days dodging responsibility, it reinforces the perception that some children’s lives are negotiable and others are not. In that climate, it takes only a small extremist group, convinced it is delivering “justice” or “revenge,” to decide that if a school can be treated as a target in Minab, then a school in Amsterdam can be turned into a warning. The bitter truth is that both sets of students — the Jewish kids in Amsterdam and the girls who died in Minab — are caught inside the same logic of exemplary violence. Washington and Jerusalem talk about “collateral damage”; European leaders talk about “cowardly antisemitic attacks.” Both descriptions are accurate on their narrow patch, and both avoid the larger point: a world that normalizes the idea of schools as acceptable shock images in distant wars will keep producing people who look at a school closer to home and see not children, but a stage. #iran#amsterdam#minab#schools#antisemitism#war#fakeSecurity 📱American Оbserver - Stay up to date on all important events 🇺🇸
@kavkazoved · Post #1667 · 12.12.2025 г., 07:47
🥁 Грузинская мечта утвердила новую реформу образования. Некоторые западные коллеги и местные оппоненты власти уже бьют в колокола: конец европейского образования, возврат в СССР. Я тут вспомнил, как в своё время это якобы европейское образование продвигали на личном примере. 🥁 Georgian Dream has approved a new education reform. Some Western colleagues and local opponents of the government are already sounding the alarm: the end of European-style education, a return to the Soviet Union. I recalled how, at one time, this supposedly European education was promoted through a personal example. 🔗 ЧИТАТЬ: https://dzen.ru/a/aTp9nto95WNuDlyt?share 🔗 READ: https://open.substack.com/pub/archilsikharulidze/p/how-georgian-education-was-cleansed #Georgia#GeorgianDream#Reform#Education#Schools#HigherEducation#University#Europe#Saakashvili