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

Резултати

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

Пребарај: #financialstability

当前筛选 #financialstability清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #4040 · 31.01.2025 г., 16:00

Bitcoin Market Trends and Developments 📊 Glassnode analyzes the current bullish market, citing reduced growth momentum but similarities to 2015-2018 cycles. Bitcoin experiences less painful corrections due to high demand after the Bitcoin ETF implementation. 🐋 Tether reports record net profit exceeding $13 billion in 2024, with reserves surpassing $20 billion and U.S. Treasury holdings at $113 billion. 👑 MicroStrategy plans preferred stock offering at $80 per share, aiming to raise $563 million for Bitcoin purchases. Offering oversubscribed, increasing shares from 2.5M to 7.3M. 🦄 Uniswap v4 launched, supporting multiple chains with 99.99% lower costs for creating pools, undergoing 9 audits with no critical vulnerabilities found. NEW: 🟠 Bitwise approved by SEC for Bitcoin & Ethereum ETF. #Bitcoin#Tether#MicroStrategy#Uniswap#ETF#AI#Crypto#VC#DeFi#Ecosystem#Investments#Blockchain#MarketTrends#FinancialStability#Ethereum#SEC#Treasury#Innovation#Startups

Crypto M - Crypto News

@CryptoM · Post #65325 · 12.04.2026 г., 23:14

🚀 Expert: Bitcoin's Stability Amid U.S.-Iran Conflict Highlights Its Potential Anthony Pompliano highlighted Bitcoin's role as a beacon of hope during the U.S.-Iran conflict. According to NS3.AI, Pompliano noted that while stocks, bonds, and gold experienced sell-offs, Bitcoin remained stable or even rose slightly. He emphasized that Bitcoin's lower volatility and neutrality could bolster investor demand during times of geopolitical uncertainty. #Bitcoin#Cryptocurrency#Geopolitics#USIranConflict#FinancialStability#InvestorDemand#MarketVolatility#DigitalAssets#BTC

Crypto M - Crypto News

@CryptoM · Post #64812 · 10.04.2026 г., 01:33

🚀 Bank of Korea to Monitor Inflation, Growth, and Financial Stability The Bank of Korea has announced its intention to closely monitor the impacts on inflation, economic growth, and financial stability. According to Jin10, the central bank emphasized the importance of vigilance in the current economic climate. This statement comes amid ongoing global economic uncertainties, which have prompted central banks worldwide to reassess their monetary policies. The Bank of Korea's focus on these key areas reflects its commitment to maintaining economic stability and addressing potential challenges that may arise in the future. #BankofKorea#Inflation#EconomicGrowth#FinancialStability#MonetaryPolicy#EconomicStability#GlobalUncertainties

Crypto M - Crypto News

@CryptoM · Post #64667 · 09.04.2026 г., 13:16

🚀 Poland's Central Bank Governor: Current Inflation Shock Less Severe Than in 2022 Poland's Central Bank Governor, Adam Glapinski, has stated that the current inflation shock is significantly less severe compared to the situation in 2022. According to Jin10, Glapinski emphasized that the measures taken by the central bank have helped mitigate the impact of inflation on the economy. He noted that while inflation remains a concern, the current economic conditions are more stable than they were during the previous year. Glapinski's comments come as Poland continues to navigate economic challenges and aims to maintain financial stability. #Poland#CentralBank#Inflation#EconomicStability#AdamGlapinski#FinancialStability#2022Inflation

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 #64700 · 09.04.2026 г., 14:59

🚀 IMF Chief Georgieva: Central Banks Cannot Afford Uncontrolled Inflation IMF Managing Director Kristalina Georgieva has emphasized that central banks worldwide are unable to bear the consequences of uncontrolled inflation. According to Jin10, Georgieva highlighted the critical need for monetary authorities to maintain vigilance and take necessary measures to prevent inflation from spiraling out of control. She stressed that failure to manage inflation effectively could lead to severe economic repercussions, affecting global financial stability. Georgieva's remarks underscore the importance of coordinated efforts among central banks to address inflationary pressures and ensure sustainable economic growth. #IMF#CentralBanks#Inflation#MonetaryPolicy#EconomicStability#GlobalEconomy#FinancialStability#KristalinaGeorgieva#EconomicGrowth

Crypto M - Crypto News

@CryptoM · Post #65262 · 12.04.2026 г., 11:47

🚀 AI TRENDS | UK Financial Regulator Assesses Risks of Anthropic's Latest AI Model The UK Financial Times reports that the British financial regulatory authority is urgently evaluating the risks associated with Anthropic's latest AI model. According to Jin10, this assessment comes amid growing concerns about the potential implications of advanced artificial intelligence technologies on financial stability and security. The regulator aims to understand the model's capabilities and any possible threats it may pose to the financial sector. This move reflects a broader trend of increased scrutiny on AI developments by global financial institutions. #AI#UKFinancialRegulator#AnthropicAI#FinancialStability#AIEthics#FinancialSecurity#GlobalScrutiny#ArtificialIntelligence

Crypto M - Crypto News

@CryptoM · Post #65008 · 10.04.2026 г., 13:37

🚀 Hapvida Aims to Raise $398 Million Through Southern Brazil Operations Sale Hapvida Participacoes e Investimentos is reportedly aiming to raise up to 2 billion reais ($398 million) by selling its operations in southern Brazil. Bloomberg posted on X that the health-care corporation is looking to reduce its debt through this sale. The move comes as part of Hapvida's broader strategy to streamline its operations and improve financial stability. The company has not yet disclosed specific details about potential buyers or the timeline for the sale. This decision reflects a growing trend among corporations to optimize their portfolios and focus on core areas amid challenging economic conditions. #Hapvida#SouthernBrazil#Sale#Healthcare#DebtReduction#FinancialStability#CorporateStrategy#EconomicConditions#Bloomberg#PortfolioOptimization

Venture Village Wall 🦄

@venturevillagewall · Post #3677 · 23.12.2024 г., 17:00

Telegram Hits Profit Milestone Telegram has achieved profitability for the first time since its monetization began, as announced by Pavel Durov. In 2024, Telegram's revenue exceeded $1 billion, with paid subscribers tripling to 12 million and advertising revenue increasing significantly. While the app generated about $240 million from subscriptions and ads in the first half of the year, much of its profit stemmed from the sale of Toncoin, which brought in $348 million. Durov expressed confidence in Telegram's financial stability but raised questions about the sustainability of its profits from cryptocurrency. Additionally, a key concern remains whether Durov can repay $2.3 billion in bonds by 2026. Despite these challenges, the news of Telegram's profitability is welcomed by users and investors alike. #Telegram#Profit#Revenue#Subscriptions#Toncoin#Cryptocurrency#Durov#FinancialResults#Advertising#Bonds #2024 #Users#SocialMedia#Monetization#Growth#Debt#Investors#Innovation#CryptoAssets#FinancialStability#Sustainability