Forum >> Programmazione Python >> Calcolo scientifico >> decodificare una stringa

Pagina: 1

Buonasera,

premetto che ho iniziato da poco a usare Python. Mi sono imbattuta in questo problema: ho una stinga in un elemento uint8[] che corrisponde a valori da 0 a 255.


eehggehhdeagefhfddbcadbecbcdcdaciffabbfchaaddbdcecafabbedecccececdbfdehhfibcaabfddcgegaabacddfcbcbfeedfdccd`dccf`bag`dfceceddad`cefhggbfjde`bicfggffddfcgcefhehcddfchdgcfacdb`fegfifgdahceidiehjjghhddafhgdaggegaefkihngihhejifehjikjdkgjgighechgehde`dcb`dadddaddccfcdebdcacbcacafddecdadbacedbbadbcbc`a`bbccgdbfgdebekifidghdegbehfhfdfgihigifbcighidc`dcbefcccgceaddcfhdhfbdbbcdehddcccfddbceaecacbbb`bfegidfbfddbd`cfdegfchfeaeeidcbccgfbh``efcfgdhkhhhjimkkhffiljjnlhmgicbfeffgeefdbeggfdbaegfdeidcbfdhdjiihdhhhcc`dihfhifahehgdehhigjihhllemmlimgfjwrfmlnliflldbcfiijfhhhaehhhlmllqoqojlmnkfllorrqstgnirqmejppnkhqmjiijildghgehdihjnnnlkfklkkhiiaffgmkgejijhdihhhkefgddjklihjoqfnnqiimqmomnlnlikhedcgfhgjkihgighfhjfkikkhghmohhhacghehfeeghlkihdgfieh`cfddbachchcabadeeegedffdejkhkmrmpqslnkolrrsklqpxtsqpxsuyxxrqpprurrmqrslnifklckpkntvmplkjkjihhkdilknkincliibfjicfhkkjbdgchgklfeeiedhgiigihhijghggihchfehhhieoifknjnqqqihpomhklmlljkjgfkiehdchffgjhldefcgehcfgcfcaabhdegbgeddfchdgfbcehahehhiiighhfijgekiilhifhgiieigfhhjgehdfeedhhhkjidedhhifgdackjmhljgddhddchiklklgeehhfiejifhfhjihiegegifhffjikhighihieifhkhjehihghhjmgjlhjhcdhfebhichkjjgacbdfhaeeeefcigcagehf`hfkhnccebdeghhffgicgikdcccbdegjkifgbdgegeedeecafijbhkhcfcffgcecimlgefdbcac`edhejfhacfeecegihhcgkjjkjhhigeabadcgedgfdhebfcdchdbadeeihghedihiigfabcebbdbbdfhhhgeeehegehegf`adeehhecdahh`eehgebcfghdfegcdfaeabgbdgd^eacfgihhgcdabbdc`aachjhebcbebefgbhfggedbcfceaddbebdba_`bbed`cbfbdfjbe`cdaecdbggdfabbaaab`bdccgcfbebddddefch
come faccio a decodificarla? Grazie

Mi rispondo da sola...........







pixel=eehggehhdeagefhfddbcadbecbcdcdaciffabbfchaaddbdcecafabbedecccececdbfdehhfibcaabfddcgegaabacddfcbcbfeedfdccd`dccf`bag`dfceceddad`cefhggbfjde`bicfggffddfcgcefhehcddfchdgcfacdb`fegfifgdahceidiehjjghhddafhgdaggegaefkihngihhejifehjikjdkgjgighechgehde`dcb
x=[ord(c) for c in pixel]# una lista



Pagina: 1



Esegui il login per scrivere una risposta.