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

Пребарај: #ks

当前筛选 #ks清除筛选
元朗牛哨兵

@yuenlongox · Post #64564 · 08.06.2022 г., 00:54

0809 0824 #朗屏 LongPing DEF有黃捉入 (有cam) 一人中伏 🆎3黃捉入⚠️ 提防柱後‼️ 提防抽查‼️ 不要心存僥倖‼️ 請持有正確有效車票進出車站✅ #KS team ‼️

Hashtags

Pensive|

@PensivePost · Post #4907 · 10.02.2021 г., 18:18

****LIFE and PUPPET ****** I wish the life was simpler and puppet ( human ) of life were not connected with the wants of emotions, needs ,love and care. However life is complicated with puppet getting dissolve into the wants of everything and leaving them in shade of despair when things fall apart. Puppet are moving from one up to another up or another down or vice versa. During this phase one learn to find oneself as a individual or get lost in the phase to find one self . While some puppet get better, some Puppet get worse and some puppet never come in terms with acceptance of anything really happened to oneself. So the question arises are you genuinely happy with yourself and your surroundings ? there is need of evaluation of oneself to be at onset of better puppet. One need to address the statement do we really need that transformation and what is the obstacle & hurdles in the way. Are we failing to be self motivated and the feel of success is missing, does one need to experience that success day in day out which will bring genuine happiness in us ? It is the time we heal the right way so that we don't keep bleeding . One has to start waking up in the morning with the feel of happiness and excitement of really doing better than yesterday. One has nothing to lose and there is so much to conquer ,does that make you feel excited. Let's work hard with oneself, invest something really on serious level and see the outcome. At the end of the day we really need to feel that it is what we wanted so as to call a better puppet :) #review#article#KS

Pensive|

@PensivePost · Post #4906 · 10.02.2021 г., 18:13

*********************LIFE and PUPPET *********************** I wish the life was simpler and puppet ( human ) of life were not connected with the wants of emotions, needs ,love and care. However life is complicated with puppet getting dissolve into the wants of everything and leaving them in shade of despair when things fall apart. Puppet are moving from one up to another up or another down or vice versa. During this phase one learn to find oneself as a individual or get lost in the phase to find one self . While some puppet get better, some Puppet get worse and some puppet never come in terms with acceptance of anything really happened to oneself. So the question arises are you genuinely happy with yourself and your surroundings ? there is need of evaluation of oneself to be at onset of better puppet. One need to address the statement do we really need that transformation and what is the obstacle & hurdles in the way. Are we failing to be self motivated and the feel of success is missing, does one need to experience that success day in day out which will bring genuine happiness in us ? It is the time we heal the right way so that we don't keep bleeding . One has to start waking up in the morning with the feel of happiness and excitement of really doing better than yesterday. One has nothing to lose and there is so much to conquer ,does that make you feel excited. Let's work hard with oneself, invest something really on serious level and see the outcome. At the end of the day we really need to feel that it is what we wanted so as to call a better puppet :) #review#article#KS

中文名: 可塑性记忆(플라스틱 메모리즈) 英文名: Plastic Memories 话数: 13 放送开始: 2015年4月4日 放送星期: 星期六 导演: 藤原佳幸 脚本: 林直孝 分镜: 菅原静貴、木村泰大、上坪亮樹、山﨑みつえ、福田道生、入江泰浩、藤原佳幸 ☺️评分:7.0 推荐 💙故事简介 故事发生在一个比现在的科学要进步的世界。18岁的水柿司高考失败,多亏父母找关系得以进入世界大企业SAI社工作。SAI社是制造管理拥有感情的人形智能机器人(通称:Giftia)的企业,司在其中被安排到终端服务部门工作。这个部门其实就是回收即将到期的Giftia,是所谓的“窗边部门(不被重视的部门)”。于是司和打杂的Giftia少女“艾拉”组成搭档,一起开始了工作…… 💔OneDrive:打开表格 😱百度网盘:点击下载 😄往期番剧汇总表格:打开 🔐解压:blackcatunderthemoon 引索:#K#KS 标签:#原创#科幻#恋爱#催泪 🗣请不要在讨论中打开链接,请使用频道消息的链接或者表格,讨论中的链接是失效的,百度网盘是自提取,如果没有自提取复制链接可以看到提取码,禁止在线解压

Libertà è ragione

@libertaeragione · Post #4435 · 30.12.2025 г., 20:46

#Elezioni#Kosovo Risultati definitivi: Affluenza: 45,36% #Vetëvendosje|S&D: 49,34% #PDK|RE: 20,98% #LDK|EPP: 13,57% #AAK|Centro-destra: 5,66% #LS|EPP: 4,81% #NISMA|Centro-sinistra: 1,7% #KDTP|Minoranza turca: 0,61% #ZSPO|Minoranza serba: 0,55% #Vakat|Minoranza bosgnacca: 0,44% #NDS|Minoranza bosgnacca: 0,4% #IRDK|Centro egiziano: 0,29% #SDU|Centro-sinistra bosgnacco: 0,27% #PLE|Centro egiziano: 0,21% #ASDP|Centro-sinistra ashkali: 0,2% #PAI-#PDAK-#LpB|Minoranza ashkali: 0,19% #JGP|Minoranza gorani: 0,17% #LPRK|Minoranza rom: 0,12% #PBK|Estrema destra: 0,1% #Fjala|Destra: 0,1% #PREBK|Minoranza rom: 0,09% #IQPK|Civici: 0,09% #KS|Minoranza serba: 0,06% #KNRP|Minoranza rom: 0,03% Nedžmidin #Sejdilar: 0,03% In foto la mappa del voto. @OsservatorioEsteri