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

Резултати

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

Пребарај: #bondyields

当前筛选 #bondyields清除筛选
Crypto M - Crypto News

@CryptoM · Post #64490 · 09.04.2026 г., 02:54

🚀 Japan's Finance Minister: Middle East Conflict Impacts Japanese Bond Yields More Than Expected Japan's Finance Minister Satuki Katayama has highlighted the significant impact of the ongoing Middle East conflict on Japanese government bond yields. According to Jin10, Katayama noted that the influence of overseas markets on Japan's bond yields has been greater than initially anticipated. This observation underscores the interconnectedness of global financial markets and the potential for geopolitical events to affect economic indicators in countries far removed from the conflict's epicenter. The situation calls for careful monitoring and strategic planning to mitigate any adverse effects on Japan's financial stability. #Japan#Finance#MiddleEastConflict#BondYields#GlobalMarkets#Geopolitics#EconomicImpact#FinancialStability

Crypto M - Crypto News

@CryptoM · Post #64961 · 10.04.2026 г., 12:25

🚀 ING: Strong US CPI Could Boost Dollar as Inflation Risks Rise Key TakeawaysING says USD may strengthen if March CPI accelerates.Rising energy prices linked to Iran conflict driving inflation risk.Focus shifts to “second-round effects” in core inflation.Fed outlook depends on whether higher costs spill into wages and prices.Dollar Outlook Hinges on Inflation SurpriseAccording to Francesco Pesole, the US dollar could gain support if upcoming CPI data shows a meaningful increase in inflation for March.The anticipated inflation pressure is largely tied to rising energy prices, driven by ongoing geopolitical tensions in the Middle East.Higher Inflation Raises Floor for Dollar WeaknessPesole noted that elevated inflation expectations may limit downside for the dollar, even as geopolitical developments remain the dominant macro driver.In this environment:Strong CPI → supports USD strengthWeak CPI → may not trigger major USD decline due to existing inflation risksFed Focus: Second-Round Inflation EffectsFor the Federal Reserve, the key concern is not just headline inflation, but whether second-round effects emerge.This includes:Businesses passing higher costs to consumersWage increases driven by inflation pressureBroader persistence in core inflationIf these effects materialize, it could reinforce a higher-for-longer interest rate outlook.Market ImplicationsThe CPI release is expected to influence:Dollar directionBond yieldsRisk assets including equities and cryptoA stronger dollar and higher yields could weigh on risk markets, while softer inflation may ease financial conditions.OutlookMarkets are entering a sensitive phase where:Inflation data is closely tied to geopolitical developmentsMonetary policy expectations remain uncertainCurrency and risk asset volatility could increaseThe CPI print will be a key test of whether inflation pressures are temporary or becoming entrenched. #USD#CPI#Inflation#EnergyPrices#Geopolitics#FederalReserve#InterestRates#DollarStrength#BondYields#RiskAssets

Crypto M - Crypto News

@CryptoM · Post #64535 · 09.04.2026 г., 06:35

🚀 U.S. March CPI Expected to Rise Amid Ongoing Iran Conflict The market widely anticipates that the U.S. Consumer Price Index (CPI) for March will increase by 3.4%, surpassing last month's 2.4%, marking the largest year-on-year rise in two years. According to Jin10, during past oil market shocks, the most likely commodities to see price hikes include aviation fuel, steel, aluminum, natural gas, fertilizers, and plastics. Industries reliant on these materials are already feeling the strain. The ongoing Iran conflict, which has lasted several weeks, has shifted concerns from the initial oil price surge to the compounded effects of a prolonged conflict. For many economists, the most alarming aspect is not the immediate issues but the "aftershocks" that may emerge months or even years later. JPMorgan's CEO has referred to inflation as a potential "fly in the ointment" that could undermine stock market returns in 2026. Harvard University professor and former IMF chief economist Ken Rogoff recently discussed an overlooked impact of the war: the increased military spending's effect on the already strained U.S. budget deficit. He noted the risk of soaring bond yields, which could harm the stock market and affect U.S. affordability. Rogoff also mentioned that the current supply disruptions caused by the Iran conflict are sufficient to keep oil prices elevated for a year. #USCPI#inflation#IranConflict#oilprices#aviationfuel#steel#aluminum#naturalgas#fertilizers#plastics#economicimpact#stockmarket#JPMorgan#budgetdeficit#militaryspending#bondyields#HarvardEconomist#supplydisruptions#USaffordability