Wuu Posted January 30, 2018 Report Share Posted January 30, 2018 print(type(code)) print(code) <class 'list'> [Decoded(data=b'1002536RH', type='CODE128')] Kas tas ir tāds pa zvēru? Un kā lai es nolasu data=b vērtību? Gara diena... Quote Link to comment Share on other sites More sharing options...
coofen Posted January 30, 2018 Report Share Posted January 30, 2018 (edited) Izskatās, ka code ir vienkārši masīvs, kurā ir iekšā kāds Decoded klases objekts, kura datu laukā ir bināra vērtībā? Iespējams kļūdos. Edited January 30, 2018 by coofen Quote Link to comment Share on other sites More sharing options...
Wuu Posted January 31, 2018 Author Report Share Posted January 31, 2018 Šobrīd pārveidoju uz string un ar regexp meklēju. Kaut kā dumji. Quote Link to comment Share on other sites More sharing options...
Sasa Posted January 31, 2018 Report Share Posted January 31, 2018 ko izvadīs šādā gadījumā: print code.data ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.