@QuietWorld · Post #6814 · 29.10.2019 г., 06:30
Correction does much, but encouragement does more. #kindness@quietworld🍃
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #242 · 7 мај
Теперь запакуем строку. В этом случае следует передавать тип данных bytes. >>> struct.pack('=s', b'a') b'a' Для записи слова следует указывать количество символов. >>> struct.pack('=5s', b'hello') b'hello' Кстати, запакованный вид соответствует исходному тексту. Всё верно, символ есть в таблице ASCII, то есть его код попадает в диапазон 0-127, он может быть записан одним байтом и имеет визуальное представление. А вот что будет если добавить символ вне ASCII >>> struct.pack(f'=s', b'ё') SyntaxError: bytes can only contain ASCII literal characters. Ошибка возникла еще на этапе создания объекта bytes, который не может содержать такой символ. Поэтому надо кодировать эти байты из строки. >>> enc = 'ёжик'.encode('utf-8') >>> struct.pack(f'={len(enc)}s', enc) b'\xd1\x91\xd0\xb6\xd0\xb8\xd0\xba' Заметьте, длина такой строки в байтах отличается от исходной длины, так как символы вне ASCII записываются двумя байтами и более. Поэтому здесь формат создаём на лету, используя получившуюся длину как каунтер токена. #libs#basic
Пребарај: #kindness
@QuietWorld · Post #6814 · 29.10.2019 г., 06:30
Correction does much, but encouragement does more. #kindness@quietworld🍃
Hashtags
@QuietWorld · Post #6808 · 28.10.2019 г., 06:30
He who helps early helps twice. #kindness#life @quietworld🍃
@learnRCRussian · Post #5825 · 13.12.2025 г., 15:00
Служба спасения сов! Owl Rescue Service! 🦉Our fighters are rescuing an owl that got tangled in the fiber-optic cable from an FPV drone. • Сова (совы) (femin.noun) [sa-va (so-vy)] An owl(s) #news #kindness 😎RCR | Support | Boost
@learnRCRussian · Post #5821 · 12.12.2025 г., 13:00
Sometimes the world seems very difficult and complicated, doesn't it? 😽It is so difficult to remain kind and humane in our time, the harder our life is, the more pleased we are with videos where people support and understand each other, where a kind joke warms our hearts and makes our world brighter! 😽Yes, we are busy with our own affairs, burdened with problems, family events. We forget about the power of human kindness. A young girl, on her first day at work, is very worried. Every plate feels like a test, every look from the customer feels like a judgment. But instead of impatience, she is greeted with smiles. Instead of irritation, there are encouraging shouts and friendly hugs. The guests, as if sensing her vulnerability, choose sympathy. They thank and cheer her up. 😽This is a deep truth. Our strength is not in perfection, but in kindness. We offer kindness to others and choose it in ourselves. Video: Новый мир #kindness #brief_and_interesting #Russian_culture 😎RCR | Support | Boost
@QuietWorld · Post #7202 · 24.02.2020 г., 08:38
#life#love#kindness @quietworld🍃
@QuietWorld · Post #6779 · 23.10.2019 г., 23:30
🔖“What we have done for ourselves alone; dies with us. What we have done for others and the world; remains and is immortal.” · Albert Pike · #life#kindness#truth @quietworld🍃
@QuietWorld · Post #7625 · 07.10.2020 г., 02:01
#life#kindness#inspiration @quietworld🍃
Hashtags
@googlefactss · Post #40077 · 13.11.2025 г., 03:00
World Kindness Day, from the World Kindness Movement, is a universal awareness day about promoting the importance of being kind to each other, to yourself, and to the world, and is celebrated on the 13th of November every year. Celebrate by being kind online too. [Source] @googlefactss #Kindness#BeKind
@QuietWorld · Post #6748 · 19.10.2019 г., 13:00
Happiness is not so much in having as in sharing; We make a living by what we get, but we make a life by what we give. – Norman M. #kindness#happiness#life @quietworld🍃
Hashtags
@QuietWorld · Post #7764 · 24.03.2021 г., 22:24
#wisdom#kindness#truth @quietworld🍃
@QuietWorld · Post #6811 · 28.10.2019 г., 13:01
We love those people who give with humility, or who accept with ease. #kindness#gratitude @quietworld🍃
Hashtags
@QuietWorld · Post #7694 · 24.11.2020 г., 00:54
#love#kindness#life#truth @quietworld🍃