python 读取bin文件

python读取bin文件并下发串口   # coding:utf-8import time, serialfrom struct import *import binasciifile = open('E:\\1.bin', 'rb')i = 0while 1: c = file.read(1) # 将字节转换成16进制; ssss = str(binascii.b2a_hex
相关文章
相关标签/搜索