@QuietWorld · Post #6982 · 26.11.2019 г., 17:13
multiply grateful for God's love, because your caution only guarantees 0, so% of your safety every day #realtalk@quietworld
Hashtags
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
Пребарај: #realtalk
@QuietWorld · Post #6982 · 26.11.2019 г., 17:13
multiply grateful for God's love, because your caution only guarantees 0, so% of your safety every day #realtalk@quietworld
Hashtags
@QuietWorld · Post #6438 · 06.05.2019 г., 09:55
💯 #realtalk#life@quietworld🍃
@QuietWorld · Post #6383 · 19.04.2019 г., 14:58
this 💯👌 if you want to apologize, just say sorry and mean it. no need to add anything to make the other person feel bad for being frustated when you are the one who hurt them. #realtalk#quotes@quietworld🍃
@QuietWorld · Post #6972 · 25.11.2019 г., 12:53
"Sometimes life doesn't give you what you want, not because you don't deserve it, but because you deserve so much more." #realtalk#motivation@quietworld
Hashtags
@QuietWorld · Post #6991 · 29.11.2019 г., 12:28
"Goodbye is only for those who like their eyes, because for those who like their hearts and souls, there is no such thing as separation." #love#realtalk@quietworld
@QuietWorld · Post #6966 · 24.11.2019 г., 05:35
💯 #realtalk#truth @quietworld🍃
@QuietWorld · Post #6573 · 13.08.2019 г., 06:49
#realtalk#truth@quietworld🍃
@QuietWorld · Post #6460 · 15.05.2019 г., 04:50
#truth#realtalk @quietworld🍃
@QuietWorld · Post #6457 · 14.05.2019 г., 11:23
I appreciate honesty over everything. If you tell me what it is upfront and give me the option to take it or leave it, I respect that. #truth#realtalk@quietworld🍃
@QuietWorld · Post #6962 · 23.11.2019 г., 14:43
#love#reminder#realtalk @quietworld🍃
@QuietWorld · Post #7073 · 14.12.2019 г., 07:06
older than us, we were 22 when we were having this conversation), and two of my most observant friends talk about the self-conflict each of our coursemates had as they enter 21. & I wouldn't notice the 'pattern' if my friends didn't point out. & suddenly one of my friends started sharing his moment of depression and how he coped with it. & somehow at that moment I felt like my friends actually noticed my changed behaviour and suspected that there's something bothering my mind and they were actually trying to help me out by asking me out, being with me, spending time with me. & I'm glad that they are wise to not help me out by asking me what's wrong because if they ask me what's wrong , I don't even know what is wrong with me and me realizing that there's something off with me and not knowing what it is gonna make me feel so much wrong 😂 and I'm glad they didn't ask me that question. Instead, they just help me out by being there. I'm so grateful and blessed to have friends like them. I was grateful and I am more grateful now, because I just realized that there's actually so much more blessings I had that I haven't notice more in details until now. :') Anyway this is such a long post I didn't even have any idea that it was gonna be this long I wondered if anyone would even read it from beginning till the end, so here's a quick question, did I managed to keep you engaged from the beginning to the end of this post? 😅 #thoughts#afterthoughts#realtalk#poll @quietworld🍃
@QuietWorld · Post #6651 · 06.10.2019 г., 15:00
You do not miss the person; you miss the feelings you experienced with them. If you were to somehow receive similar feelings, you would dismiss & forget that person. #quotes#love#relationship#realtalk @quietworld🍃