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

TGINSIGHT SIMILAR POSTS

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

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

Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML. Из плюсов такого подхода стоит отметить вот что: 🔸 готовый, повсеместно используемый и поддерживаемый формат 🔸 простой и понятный файл, удобочитаемый для человека 🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек Но есть и минусы 🔹 затраты времени при записи файла (кодирование данных в нужный формат строки) 🔹 затраты времени при чтении файла (декодирование данных в Python объекты) 🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...) 🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда) 🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи. Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳. 🔸 очень быстрая запись 🔸 чтение значительно быстрей чем JSON, YAML итд 🔸 размер файла значительно меньше, так как нет разметки 🔸 можно записывать данные по мере поступления не загружая всё в память 🔸 можно извлечь любую часть данных независимо Из минусов 🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата) 🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию. 🔹 не так-то просто создать такой файл без специальной библиотеки В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии. (Это не означает что нельзя записать данные разного типа, просто это будет не так удобно) Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого f15d cd29 a564 4578 ... 09e2 9bc4 a696 1253 ... 84e9 4de1 3b23 c24a ... 2534 5161 28e0 709d ... ... Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла. К чему это я? Читайте в следующем посте... #tricks#basic

Резултати

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

Пребарај: #catholic

当前筛选 #catholic清除筛选
Addis Standard

@addisstandardeng · Post #21717 · 14.03.2026 г., 09:13

#Catholic bishops urge #Ethiopians to resist hatred, condemn violence against civilians Addis Abeba – Ethiopia’s Catholic bishops have condemned acts of violence against civilians in various parts of the country and called on Ethiopians to resist hatred and reject attempts to deepen social divisions. In a statement issued by the Catholic Bishops’ Conference of Ethiopia, the bishops deplored what they described as continued attacks and atrocities targeting innocent civilians, stressing that such violence cannot be justified by religious teachings, cultural traditions, or political reasons, Vatican News reported. The bishops highlighted recent attacks reported in the Arsi Zone of Oromia Regional State, expressing concern over what they described as recurring violence in the area. “We are deeply saddened by the heinous and inhumane killings and the destruction of property targeting innocent people… https://www.facebook.com/share/1AS4phfuJc/?mibextid=wwXIfr

BELLUM CONTRA HÆRÉTICOS

@Catholicismus · Post #6111 · 10.07.2023 г., 09:31

The Novus Ordo is a #Freemasonic sect that fights the #Catholic church & oposses the very foundations of all that #Christian & Holy with their leader at the helm. Some who attend don't know any better but it still does not change the fact that until they are unplugged from that machine of anti-white anti-catholic teaching they are potentially an enemy that will turn on you the first chance they get. The Novus Ordo leadership is the enemy and its members should be sought out for conversion for our worldview. If they refuse they are the also enemy.

Legio Christi

@LegioChristi · Post #1240 · 17.02.2023 г., 00:24

St Michael's Operations is a nonprofit organization of Catholic laymen that provides Church protection and emergency response, donates medical supplies to chapels and parishes, provides cost effective training and now provides humanitarian aid and the corporal works of mercy to our clientele and our countrymen. Primarily located in California and Arizona it has a branch pending in Wisconsin and is entering into negotiations for opening a Texas branch. We have donated thousands of man hours, and thousands of dollars in equipment. We have protected rosary rallies during tense political standoffs in the vicinity. We have provided on scene BLS medical assistance on multiple occasions. We have removed multiple after hours trespassers, as well as removed those who have disrupted the Mass. We are an all volunteer force and we depend on join fees, membership dues, Church sponsorship and the generosity of our fellow man in order to conduct operations. In Fiscal year 2023 we are looking to set up a fully functional disaster response team in order to help provide relief wherever tragedy strikes such what we saw with East Palestine, Ohio. Additionally we are looking to send three of our most dedicated volunteers to get some advanced hands on training with the EPS League's Hard Skills intensive. We want to sponsor them as much as possible so as to prevent undue financial burden on these good men. This training will go towards hardening the security posture of our chapels and parishes and give us the ability to provide proper protection to important members of the Ecclesiastical hierarchy such as the Bishops, especially during Holy Week. If it is on your heart and you are disposed, please consider donating. You will of course receive a statement regarding your donation in order to write it off of your taxes. Our current fundraising goal is a minimum of $20,000 by July. God bless you and St Michael protect you. #fundraising#security#nonprofit#training#help#team#catholic#medical https://venmo.com/code?user_id=3195413498691584121