@mountstorm · Post #692 · 05.08.2023 г., 16:00
Twas the night before finals, And all through the college, The students were praying For the last minute knowledge. #yeah
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
Пребарај: #yeah
@mountstorm · Post #692 · 05.08.2023 г., 16:00
Twas the night before finals, And all through the college, The students were praying For the last minute knowledge. #yeah
Hashtags
@mountstorm · Post #670 · 25.07.2023 г., 07:14
We need to be educated! #yeah
Hashtags
@mountstorm · Post #657 · 18.07.2023 г., 10:34
Always hate comes from below #yeah
Hashtags
@mountstorm · Post #653 · 16.07.2023 г., 04:16
That Eye Blunt Injury The incident of a blunt eye injury during a football game caused me to spend a week alone in the hospital, which led to the discovery of my sense of self. I associate mostly with being a student, as I have always been passionate about learning and developing my knowledge. However, the experience of the injury made me realize that being cautious and aware of my surroundings is also a defining part of my identity. As a student, I am constantly learning and growing, but as someone who has suffered an injury, I am also aware of my vulnerability. This experience has taught me to be more careful and attentive in my day-to-day life, especially when participating in physical activities. Overall, the experience has helped me to redefine my identity and to appreciate the importance of taking care of myself. #yeah
Hashtags
@mountstorm · Post #638 · 08.07.2023 г., 05:23
Today is the last day, last night, last late-night mafia gatherings, last dinner together, last secret friend gift, last team building, and last memorable conversations. #yeah
Hashtags
@mountstorm · Post #630 · 05.07.2023 г., 12:47
🥷 If you can climb the real mountain, why can't you climb your imagined ones? #yeah
Hashtags
@mountstorm · Post #593 · 25.05.2023 г., 10:20
Pain is temporal, remembering valuable ones is rare. #yeah
Hashtags
@mountstorm · Post #259 · 29.06.2022 г., 02:09
#yeah
Hashtags
@mountstorm · Post #203 · 06.06.2022 г., 05:35
😌 5 Exams out of 6, I got from all '5' mark #yeah
Hashtags
@mountstorm · Post #170 · 30.05.2022 г., 08:15
Summer. High School graduates still have the aftertaste of the graduation party and now are preoccupied with summer holidays. While my bro, a 9th grade graduate, can chill for the entire season, he will work on his academic interests and chill. Along with participating in extracurricular summer programs, he will be reading books, however cliche it sounds. Reading a book is like investing in real-estate. As long as you get the right book/estate, you are in a slowly-but-surely growing business. No need for a solid schedule or a measurable goal - how many pages to read daily, specific deadlines - in the beginning. Planning is important, I'd say, when and if there is already a vivid picture of what exactly you need and want to read. I started the process with whatever I had in hand - a fairy-tale collection, a magazine, or a random novel. Bit by bit, it's been getting more clear what genre/author's style is mine and what book to read next. The difference between a "good" book and a "bad" one for me is the first ten pages. Asking for advice on what to read from others is also better done in later stages, I believe. Suggested books are better added to the foundation laid by you. #yeah
Hashtags
@mountstorm · Post #187 · 04.06.2022 г., 18:20
Saturday classes 😬 = Vocab game 😋 Accuracy is fine, bro, calm down) #mountstorm#yeah
Hashtags
@mountstorm · Post #253 · 22.06.2022 г., 09:54
🥳 Finally got a certificate of Basic secondary Education with Honours 9th specialized school. P.s/ бордовый аттестат 😮💨 #oqiganlaga_mazza#yeah
Hashtags