【发布时间】:2019-07-25 10:37:40
【问题描述】:
我从机器接收到串行数据字节字符串b'001 000000000000000000 000 4.98 135.1 100.8 0.00 0.00 6.6\r\n'。如何创建像[001, 000000000000000000, 000, 4.98, 135.1, 100.8, 0.00, 6.6] 这样的列表?
【问题讨论】:
-
检查 split() 函数。
标签: python python-3.x list byte