摘要: 本篇主要介绍如何在Python语言中使用Google Protocol Buffer(后续都简写为PB), 包括以下几个部分: 为什么要使用PB? 安装Google PB 自定义.proto 文件 编译.proto文件 解析目标py文件 序列化和反序列化 更复杂的Message 动态编译 为什么要使 阅读全文
posted @ 2020-12-15 16:00 职场亮哥 阅读(1381) 评论(0) 推荐(0) 编辑
摘要: "There are only two hard things in Computer Science: cache invalidation and naming things." — Phil Karlton 在计算机领域只有两件艰难的事情:缓存失效和对象命名。 这还真不是一个笑话。写代码是比较 阅读全文
posted @ 2020-12-15 08:40 职场亮哥 阅读(319) 评论(0) 推荐(0) 编辑