摘要: Python3 GRPC Protobuf 转换为 JSON 或 Python3 对象 Python3 调用 GRPC 的时候有时候需要将 Protobuf 调用转换为 JSON 或 Python3 对象,这个操作 google.protobuf 库已经帮我们备好了工具 Protobuf -> Py 阅读全文
posted @ 2023-02-28 17:56 michaelchengjl 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 使用python实现json, yaml 互转 1. 安装yaml库: pip3 install pyyaml 2. yaml转json 新建一个test.yaml文件,添加以下内容: A: hello: name: Michael address: Beijing B: hello: name: 阅读全文
posted @ 2023-02-28 17:54 michaelchengjl 阅读(1385) 评论(0) 推荐(0) 编辑