import struct
encoded_value = 0x41c556be9163126f
# 将 fixed64 转换为 double (浮点数)
decoded_double = struct.unpack('!d', struct.pack('!Q', encoded_value))[0]
print("Decoded as double:", decoded_double)
【protobuf】fixed64转double
最新推荐文章于 2024-09-27 19:00:44 发布