[Tutor] how to transform the data as below?

Peter Otten __peter__ at web.de
Fri Mar 18 05:32:12 EDT 2016


Yeh Z wrote:

[Please don't top-post. Thank you]

>    Thanks for your help,
> 
>    It's my bad, I should put them to a list, not a array?
>    such as:
>    YY, 100, 140, 200, 110, 160?

I supposed that you are trying to read binary data. 
 
>    Firstly, I'm confused about how to convert them to string and integers?
>    the raw bytes? Is it different to the bytes packing by "pack"? I want
>    to read them by a human way.

If you can control what data is generated then using text would indeed 
simplify things.

>    Besides, the MUC is made by my friend, we want to make an installation,
>    which can send data via UDP from a sensor. Maybe, we can change some
>    things in MUC? I don't know MUC totally. :( I just trying to learn
>    Python.

By the way, what is a MUC?




More information about the Tutor mailing list