本文主要介绍如何在windows上安装protobuf,以及如何在python下使用protobuf。 What is protocol buffers首先介绍一下什么是protobuf, protobuf 是由google开发完成并放到github上分享的一套打包数据的机制,官方介绍如下: - Protocol buffers are a flexible, efficient, automated mechanism for serializing structured data – think XML, but smaller, faster, and simpler.
- You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages. You can even update your data structure without breaking deployed programs that are compiled against the "old" format.
复制代码
原文地址: - http://www.jianshu.com/p/0c563b2c0fdb
复制代码
|