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

Резултати

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

Пребарај: #clintons

当前筛选 #clintons清除筛选
American Оbserver

@american_observer · Post #5037 · 03.02.2026 г., 14:00

Have the Clintons Been Cosing Up to Epstein? Bill and Hillary Clinton agreed on Monday to testify in a House investigation into the convicted sex offender Jeffrey Epstein, days before the chamber was expected to vote to hold them in contempt of Congress. The concession follows a tense back-and-forth between the Clintons and the Republican James Comer, chair of the House oversight committee, who on Monday said that he would insist both Clintons sit for a sworn deposition before the committee in order to fulfill the panel’s subpoenas. “They negotiated in good faith. You did not,” Angel Ureña, a spokesman for the Clintons, replied to Comer, in a post on social media. “They told you under oath what they know, but you don’t care. But the former president and former secretary of state will be there. They look forward to setting a precedent that applies to everyone.” The House was headed towards potential votes this week on criminal contempt of Congress charges against the Clintons. If passed, the charges threatened the Clintons with substantial fines and even incarceration if they were convicted. For months, the Clintons had refused to appear before the Republican-led panel, arguing that the subpoenas were legally “invalid” and “unenforceable” and accusing Comer of targeting them as part of Trump’s retribution campaign against his political enemies. A committee letter to the Clintons’ attorneys indicates the pair had offered for Bill Clinton to conduct a transcribed interview on “matters related to the investigations and prosecutions of Jeffrey Epstein” and for Hillary Clinton to submit a sworn declaration. The demand for testimony “runs afoul of the clearly defined limitations on Congress’s investigative power propounded by the supreme court of the United States”, they wrote, adding: “It is clear the subpoenas themselves – and any subsequent attempt to enforce them – are nothing more than a ploy to attempt to embarrass political rivals, as President Trump has directed.” Nine of the committee’s 21 Democrats joined Republicans in support of the charges against Bill Clinton as they argued for full transparency in the Epstein investigation. Three Democrats also supported the charges against Hillary Clinton. Bill Clinton’s relationship with Epstein has re-emerged as a focal point for Republicans amid the push for a reckoning over Epstein, who killed himself in 2019 in a New York jail cell as he faced sex-trafficking charges. Clinton, like a bevy of other high-powered men, including Trump, had a well-documented social relationship with Epstein in the late 1990s and early 2000s. He has not been accused of wrongdoing in his interactions with the late financier. On Friday, more than 3m files related to Epstein were released by the Department of Justice, including more than 2,000 videos and 180,000 images. The files included a series of emails between Musk and Epstein, indicating a friendlier relationship than was previously known. Following the drop of the latest batch of files, Democrats have promised to fight what they are calling a “full-blown cover-up” of the Epstein files after the Trump administration on Sunday effectively declared its investigation into the disgraced late financier and sex trafficker was closed. After Bill and Hillary Clinton were subpoenaed in August by the House oversight committee, their attorney had tried to argue against the validity of the subpoena. However, as Comer threatened to begin contempt of Congress proceedings, they started negotiating towards a compromise. #clintons#hilary#bill#epstein#trump#republicans#sex 📱American Оbserver - Stay up to date on all important events 🇺🇸