摘要: https://blog.csdn.net/qq_34745295/article/details/79438774 读配置文件,将某个字串对应的asciic码写入bin文件 import configparser import struct #加载现有配置文件 conf=configparser. 阅读全文
posted @ 2020-11-04 23:11 hostid 阅读(290) 评论(0) 推荐(0)
摘要: 1、pack把指定的数据类型打包为bytes字节型,unpack按照指定的格式解析响应的数据 https://blog.csdn.net/abc_12366/article/details/80211953 2、python中内置的数据类型强制转换 pi = 3.14 print('pi:', in 阅读全文
posted @ 2020-11-04 22:46 hostid 阅读(324) 评论(0) 推荐(0)