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 слични објави

Пребарај: #arthurhayes

当前筛选 #arthurhayes清除筛选
SpotOnChain | Announcement

@spotonchain · Post #1073 · 13.01.2025 г., 06:23

Arthur Hayes (@CryptoHayes) just unstaked and deposited 7.9M $ENA ($6.44M) to #Binance and #Bybit as the price dropped 9% in the past 24 hours. He previously accumulated 16.79M $ENA at ~$0.666 ($11.19M) in late Nov 2024 and staked them for rewards. To date, he has deposited 16.9M $ENA back to CEXs at ~$1.01 ($17M), likely earning $5.52M (+48%). Follow @spotonchain and check out the #ArthurHayes entity via https://platform.spotonchain.ai/en/platform/entity/1552

Crypto M - Crypto News

@CryptoM · Post #64544 · 09.04.2026 г., 07:13

🚀 Arthur Hayes: AI to Enhance Institutional Trading Dominance Over Retail Investors Arthur Hayes has expressed that artificial intelligence will enable institutional trading systems to surpass retail traders in direct market competition. According to NS3.AI, Hayes advised retail investors to steer clear of short-term speculation and instead focus on holding cryptocurrencies for the long term. #ArthurHayes#AI#InstitutionalTrading#RetailInvestors#Cryptocurrency#LongTermInvesting#NS3AI#MarketCompetition

Crypto M - Crypto News

@CryptoM · Post #65140 · 11.04.2026 г., 11:34

🚀 Arthur Hayes Increases HYPE Holdings After Three-Month Hiatus Arthur Hayes has made a significant move in the cryptocurrency market by purchasing 26,022 HYPE tokens, valued at approximately $1.1 million, after a nearly three-month break. According to BlockBeats, this acquisition brings his total holdings to 247,334 HYPE tokens, worth around $10.44 million, with an unrealized profit exceeding $2.5 million. #ArthurHayes#HYPEHoldings#Cryptocurrency#CryptoMarket#BlockBeats#CryptoInvestment#HYPETokens#UnrealizedProfit

Crypto M - Crypto News

@CryptoM · Post #64501 · 09.04.2026 г., 03:54

🚀 Arthur Hayes Skeptical of Iran's Alleged Bitcoin Toll Collection Arthur Hayes expressed skepticism about Iran's purported acceptance of Bitcoin for toll payments on April 9. According to BlockBeats, Hayes stated that he would only believe Iran is collecting tolls in Bitcoin if he sees actual transactions on the Bitcoin blockchain. Otherwise, he considers it a tactic by the Islamic Revolutionary Guard Corps to mock the Western fiat currency financial system. #ArthurHayes#Iran#Bitcoin#TollPayments#Blockchain#Cryptocurrency#IslamicRevolutionaryGuardCorps#FiatCurrency#FinancialSystem#BTC

Venture Village Wall 🦄

@venturevillagewall · Post #4218 · 22.02.2025 г., 13:00

Ethereum Rollback Proposed After Bybit Hack Arthur Hayes proposes rolling back Ethereum to a block prior to the $1.5B Bybit hack, arguing it would benefit both the platform and holders. He asserts that Ethereum’s immutability can be revisited, citing prior instances. Support for the rollback comes from Bitcoin maximalist Samson Mow, suggesting it could limit funding for North Korea’s nuclear program. The plan involves pausing all ETH trading and renaming the hacked chain to ETHNK. Bybit CEO assures that company assets exceed the lost amount, with significant reserves remaining secure. For details, read more here. #Ethereum#Bybit#Crypto#Blockchain#Security#Hack#SamsonMow#ArthurHayes#ETH#VC#LazarusGroup#NorthKorea#Defi#Investing#Market#Trading#USDT#WhaleAlert

Crypto M - Crypto News

@CryptoM · Post #65116 · 11.04.2026 г., 04:00

🚀 Arthur Hayes Warns of Potential Federal Reserve Intervention in Private Credit Market Arthur Hayes has highlighted concerns regarding the approximately $1.8 trillion private credit market, suggesting that stress within this sector could necessitate a liquidity intervention by the Federal Reserve. According to NS3.AI, Hayes noted that regulators are currently scrutinizing the exposure of banks and insurance companies as the sector faces rising redemptions and an increase in non-performing loans. #ArthurHayes#FederalReserve#PrivateCredit#LiquidityCrisis#Banking#Finance#NonPerformingLoans#CreditMarket#Regulation

Venture Village Wall 🦄

@venturevillagewall · Post #3809 · 07.01.2025 г., 07:00

BTC & ETH ETFs See Massive Inflows 🎄Christmas Update on Crypto ETFs! BTC ETFs had an inflow of $978.6 million, while ETH ETFs attracted $128.7 million. Ex-BitMEX head Arthur Hayes predicts the bullish phase may peak by mid-March, suggesting to increase risk but take profits before April due to upcoming tax and liquidity tightening cycles. Positive dollar momentum is expected to boost liquidity by $612 billion. Key drivers include a decrease in RRP funds and TGA usage by the U.S. Treasury. 🚀 For more details, visit: Wu Blockchain News #Crypto#BTC#ETH#ETF#ArthurHayes#MarketTrends#Liquidity#RRP#TGA#QuantitativeTightening#Finance#Investing#BullMarket#CryptoNews#MarketPredictions#Inflows#Christmas2025#LiquidityDrivers

Venture Village Wall 🦄

@venturevillagewall · Post #3995 · 27.01.2025 г., 04:00

Ethereum ETF Sees Major Inflows The Ethereum spot ETF recorded a net inflow of $139M last week, with Blackrock's Ethereum ETF, ETHA, gaining $135M. However, on January 27, the crypto market saw declines across sectors, with DeFAI down 28.73%. Other sectors like AI Agents saw a 16.91% drop. U.S. crypto czar David Sacks noted ongoing evaluations regarding Bitcoin and digital assets. Meanwhile, Rosseti, Russia's state power company, plans to introduce Bitcoin mining to leverage idle power resources. Runetoshi's new memecoin, Runes, faced volatility, dropping from $28M to $500k in market value. Arthur Hayes predicts Bitcoin could dip to $70,000 before a future rise to $250,000 this year. More on ETF inflows | Market drop details | David Sacks comments | Rosseti's Bitcoin mining | Runes token collapse | Hayes Bitcoin predictions #Ethereum#ETF#Crypto#Bitcoin#Russia#Mining#Securities#Stablecoins#PricePrediction#DigitalAssets#Memecoin#MarketDrop#Runetoshi#DeFi#AI#QuantitativeEasing#USDC#WhaleAlert#MarketVolatility#FinancialCrisis#ArthurHayes