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

Резултати

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

Пребарај: #hairstyle

当前筛选 #hairstyle清除筛选
In Voga | Fashion & Web 3.0

@invogafashion · Post #3259 · 20.10.2022 г., 11:02

We return the heading of simple hairstyles on Thursdays😉 And next, we have a high tail and a couple of braids. If the density of the hair allows, then more than two is possible. #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2779 · 02.06.2022 г., 12:37

Today I will tell you one more elementary way to style your hair (and yes, it works even if it is not too clean😉 and even if there is not a lot of time) - a low tail/pigtail. There is only one rule - we "hook" the hair as low as possible at the neck, and then - whoever is in what much: - pigtail - leave fluffy and straight, and cover the elastic with a strand of hair - rewind with laces -leave fluffy and add some waves - artificial chaos - add bows and ribbons Inspiration attached👆🏼 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2745 · 28.05.2022 г., 12:11

Hairpins everywhere, hairpins in large quantities, hairpins of various types and types, hairpins in any way - this summer, we are experimenting with hairpins, and we are not afraid to overdo it 😉 A few ideas above👆🏼😉 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2673 · 19.05.2022 г., 13:04

If you suddenly decide to impress everyone with your hair, I suggest taking a incredible work by Mitsuki Jurk as a reference. Hollywood wave with pigtails, asymmetric tails, and braids, geometric parting, a mix of different types of braids, braids + natural flowers🌸🌼🌺🌹🌷 When the head and hair are like a picture 🖼, and the hairdresser is like an artist 👩‍🎨 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #849 · 16.08.2021 г., 12:02

One of my good friends cut her hair yesterday, and when I saw her, I thought - to the wolf regiment of thousands of TikTok and Instagram bloggers 🐺 has been added another one. And today, a little about this trend. Wolfcut🧑🏻‍🦰 is the most fashionable haircut for summer 2021 that came to us from Korea. Strictly speaking, this is a mixture of 2 haircuts: mullet and shaggy. With wolf cut, the hair is cut in layers from the crown, and bangs are made (these are shaggy features), but at the back of the head, the hair is left long (borrowed from mallet) - it turns out like wool from wolves, which is slightly longer at the withers. Suitable - thin, but thick enough hair, on too thin hair it is necessary to achieve volume is difficult, and as a result, a completely different story turns out. The strands are stacked from the face. The general appearance of the hairstyle is always disheveled and a little messy. #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #741 · 27.07.2021 г., 13:06

And here are some more examples on the topic of the previous hairstyle for the summer: - pigtails can be slightly perceptible and have very weak weaving, -can be located not only nearby the face but also a little further along with the top layer of the hairstyle, -and you can braid them, as in the first photo, but the truth is then such a hairstyle cannot be called fast and easy😂 Happy experiments! 😉 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #740 · 27.07.2021 г., 11:33

Leonie Hanne reminds us that summer☀️ is the perfect time for fine braids nearby our beautiful eyes: ✔️ it is comfortable and hair does not get into the eyes👍🏼 ✔️ conceptually and summerly ✔️ relevant in summer 2021👌🏼 #hairstyle

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #1704 · 04.01.2022 г., 12:32

It seems absolutely all influencers are obsessed with headbands😍 The undisputed leaders among brands are Prada, Fendi, Simone Rocha, but the rest are quickly catching up. Unambiguously like from me👍🏼 Today there is a new street style. Let's inspire ❤️ #inspirationINVOGA #hairstyle

ПретходнаСтраница 1 од 3Следна