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

Резултати

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

Пребарај: #smes

当前筛选 #smes清除筛选
AI & Law

@ai_and_law · Post #524 · 12.03.2025 г., 08:04

📖🇪🇺 The AI Act: A Strategic Focus on SMEs According to a summary from the Future of Life Institute the AI Act places significant emphasis on small and medium-sized enterprises (SMEs), mentioning them 38 times—far more than ‘industry’ (7) or ‘civil society’ (11). This focus translates into concrete measures: SMEs will receive priority access to regulatory sandboxes, benefit from proportional compliance costs, and have dedicated channels for guidance. To further ease compliance, the Act introduces simplified technical documentation, SME-specific training, and tailored obligations under the Code of Practice. With these provisions, the EU aims to ensure that AI innovation remains accessible and sustainable for smaller businesses. #AIAct#SMEs#AIRegulation#ResponsibleAI

Addis Standard

@addisstandardeng · Post #21165 · 23.01.2026 г., 10:51

#Opinion: Cost of Modernizing Addis: When progress pushes small businesses out In recent years, #Ethiopia is undergoing rapid transformation, with digitalization expanding across daily life and #Addis_Abeba experiencing one of its most ambitious urban overhauls. However, Abraham Abebe Asfaw argues in this opinion piece that such ambition risks overwhelming the small and medium enterprises (#SMEs) that employ roughly 70% of the urban population. He explains that tens of thousands of businesses are cancelling their licenses. This issue extends beyond tax compliance, as the combined pressures of taxation, informal payments, and displacement have eliminated the “margin that allowed firms to survive.” Abraham emphasizes that “ignoring this distress is costly” and cautions that “development without guardrails risks becoming extractive rather than enabling.” https://addisstandard.com/?p=54697

IRAS

@irassg · Post #1585 · 30.06.2025 г., 09:03

Meeting agenda: meeting Miffy? 😲 Follow along Yi Qing as she represents IRAS on the international stage in Utrecht, the Netherlands - the hometown of Miffy! 🐰 At the OECD FTA Community of Interest on Small and Medium Enterprises meeting, she connected with international peers to share experiences and perspectives. The discussions covered important ground in advancing tax administration, from strengthening digital ecosystems to e-invoicing and AI applications. These valuable insights are useful to inspire and shape IRAS' transformation journey ahead. Explore your opportunities at IRAS today at go.gov.sg/lifeatiras #fyp#tiktoksg#lifeatiras#SMEs#miffy

Crypto M - Crypto News

@CryptoM · Post #64594 · 09.04.2026 г., 09:46

🚀 WeChat Pay Launches AI Integration Toolbox for Seamless Payment Solutions WeChat Pay has officially introduced an AI-native integration toolbox designed to offer merchants and developers a streamlined payment integration solution. According to ChainCatcher, this toolbox facilitates the rapid generation of payment function code through natural language commands. The toolbox comprises Skill packages, AI-friendly documentation, and APIs, enabling one-click calls in mainstream AI development environments. Its 'verbal code generation' feature significantly reduces the development process from days to minutes, allowing quick integration of over 20 functions, including mini-program payments, H5 payments, refunds, and profit-sharing. Additionally, the toolbox includes AI diagnostic capabilities that automatically identify code logic issues and provide suggestions for fixes, minimizing financial and system risks during integration. It also supports interface troubleshooting and legacy code upgrades for existing system developers. This upgrade further advances the standardization and AI adaptation of payment capabilities, lowering the digital business barriers for small and medium-sized enterprises. #WeChatPay#AIintegration#PaymentSolutions#Developers#Merchants#AItoolbox#CodeGeneration#DigitalBusiness#SMEs#TechInnovation#PaymentAPI#Automation#SystemUpgrade

Crypto M - Crypto News

@CryptoM · Post #65004 · 10.04.2026 г., 13:35

🚀 Trident Digital Tech Holdings Partners with Ripple Strategy for African Expansion Trident Digital Tech Holdings, a Nasdaq-listed company, has announced a strategic partnership with Ripple Strategy Holding. According to Foresight News, Ripple Strategy will provide RLUSD stablecoin technology and payment infrastructure to support Trident's business expansion in the African market. Under the agreement, Trident plans to develop a blockchain-based tax settlement and reporting system for approximately 2.1 million small and medium-sized enterprises in Ghana. Additionally, the company aims to establish an RLUSD/GHS liquidity pool to create a low-cost, real-time foreign exchange market, facilitating 24/7 cross-border payments. Trident has previously formed a 50/50 joint venture with local institutions in Ghana, with a stablecoin business pilot scheduled to commence by mid-2026. #TridentDigitalTech#RippleStrategy#AfricaExpansion#Stablecoin#Blockchain#SMEs#Ghana#ForeignExchange#CrossBorderPayments#RLUSD#Nasdaq#TechPartnership#PaymentInfrastructure#BlockchainTaxSystem#LiquidityPool#XRP