Python Challenge! 12 So many Evils!

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

For those of you who are like me and don't want to spoil the entire answer(emphasis on entire) for yourselves and are using Python 3:

you want to read the bytes into integers first and then convert those integers back into bytes individually when you write the bytes to a file.
You do that by following this format: bytes([integer_val]).

If you just try to read the data in without converting, note that the individual bytes will not be separated. So instead of b'\xd9' you'll be getting

Hope this helped and I'm sorry if I spoiled too much for you! If you find a better solution lmk!

guywithwings
Автор

Python 10/10, Acting 6/10 :) still very good video good job !

furrane
Автор

The solution (most of them) don't work on Python 3X. I tried to adapt them. But not this one... There is a huge difference about handling bytes...

bernardofurtado
Автор

Pour python 3:

data = open('image/evil2.gfx', 'rb').read()

for i in range(5):
open('image/%d.jpg' %i, 'wb').write(data[i::5])

bidouilleur
Автор

Notice how all the numbers are under 255... RGB colors

phippre
Автор

Good series... where did you learn all your python skills?

phippre
Автор

I failed to extract bytes on Python3 :(

Brickkzz