标签:unp color style 一个 col oat import pytho pack
#coding=utf-8 from struct import pack,unpack byte=pack(‘f‘,1.5) print(byte) print([i for i in byte]) byte=pack(‘f‘,123432.523424) print(byte) print([i for i in byte])
输出
b‘\x00\x00\xc0?‘ [0, 0, 192, 63] b‘C\x14\xf1G‘ [67, 20, 241, 71]
标签:unp color style 一个 col oat import pytho pack
原文地址:https://www.cnblogs.com/sea-stream/p/10783217.html