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

Резултати

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

Пребарај: #fashionweek

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

@invogafashion · Post #3199 · 30.09.2022 г., 10:16

Acne Studios Spring 2023 on how to wear: - lace with spikes - chiffon with rough leather - torn jersey with flounces - chapped skin with floral choker - jeans to the neckline (for those who missed the high waist 😂) -bows instead of a bodice - denim vest with sheer skirts And use the bag as a means of self-defense 😉 #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #3189 · 28.09.2022 г., 12:03

And I have for you a new batch of fresh street shot by myself before the Elisabetta Franchi Spring 2023 show. Minis, catsuits, heels, over the knee boots, hats, maxi flowers, slits and sexy in the truest sense of the Italians. #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #3169 · 22.09.2022 г., 10:50

Fendi delighted everyone who bought green clothes last year and continued this grassy extravaganza in the Spring 2023 collection. Handbags, slippers, boots, and even total-green 💚 Delicate pistachio and fresh mint were a plus to the herbal one. Honestly, it reminds me a little of the best times at Bottega. There are fluffy mules, a lot of knitwear, elongated sleeves, and shaggy textures. And from the special, I liked the delicate asymmetry and side slits on the sleeves and skirts. #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #3137 · 13.09.2022 г., 11:03

Heading to NY for fashion week? 😉 Beautiful Carolina Herrera Spring 2023 with its already signature stripe 🖤 paired with a millefleur. Large textile flowers were added to the tiny floral print, gorgeous flowered textile boots and sandals, clear reception of accent printed accessories - a clutch or a belt, a mix of flowers of different colors. And, according to tradition, many flying fabrics, ruffles, voluminous sleeves - in general, everything we expect from the spring collection. #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2988 · 19.07.2022 г., 15:12

Rings on the toes, of course, are not new and, frankly, not the most convenient accessory, but they convey the atmosphere of summer and relaxation perfectly. At Etro Spring 2023 Menswear, rings were used with pajama sets, linen shorts and trousers, classic blue denim, and even a summery white suit. Although the show was for men, the idea is agender, so let's try! #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2793 · 04.06.2022 г., 10:32

The first eco-activist among brands is Stella McCartney, in her case, these are not empty words. Grape cake, eco-leather from the root structure of mushrooms, and many more eco-materials are in the Resort 2023 collection. Particular attention (as always) in the collection is paid to: - prints (mushrooms🍄, stripes, animals🐯🐄🦜 and animalistic) - textures, the variety of which is great - shapes (slits, fringes, the effect of ruggedness and perforation, the latter are generally given the central place of this collection, and the perforations are not on leather but cotton). The lookbook was filmed on an Italian farm❤️ #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2625 · 12.05.2022 г., 12:03

The Fendace collaboration went on sale today. If you look at the details separately, I like it: a cap with the Fendi logo, pins on the dress, the idea of a branded lining is not new, but it also looks good - in general, it’s not bad separately, but all together - for an amateur🙈 The video fully conveys the nature of the collection 😉 #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2362 · 30.03.2022 г., 12:01

In addition, to cringe sausages/balloons, car dresses, lip stories, the Loewe Fall 2022 show also featured leather dresses frozen in motion, made in the same technique as the already legendary Zendaya dress. Sits like a glove 👌🏼 - literally and figuratively. #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2301 · 23.03.2022 г., 12:32

A "talking" screensaver at Alexander McQueen Fall 2022 show, piles of mulch, peat smell, birds chirping, and insect sounds awaited guests before being shown the collection at a warehouse in Brooklyn, New York. And the main theme of the collection is mycelium. In the center of the collection there is bright mushroom embroidery and silk fringe, protruding knitted threads, which just imitated mycelium. But there were also less conceptual and more brand-specific rough leather, taffeta, blurry prints, X-shaped silhouettes. #fashionweek

Hashtags

In Voga | Fashion & Web 3.0

@invogafashion · Post #2271 · 16.03.2022 г., 14:07

I reviewed the Jil Sander Fall 2022 collection. Based on the experience of past years I am sure that it will be taken apart for details, what you should pay attention to: - capes, dresses, and cape blouses - the royal vibe continues its procession - very minimalist bows - infantilism made its way even here - lots of vest coats are my special love which is perfect for styling - long gloves - they have been talked about many times, just another reminder - caps on the head - a headdress that conquers our heads in the literal and figurative sense - "knitted" fur - another eco-friendly solution after the mass rejection of natural fur - Chelsea with metal trim - the harsh realities of the modern world - large collars are a signature detail of the brand, which is only getting bigger. #fashionweek

Hashtags

123•••78
ПретходнаСтраница 1 од 8Следна