1.protobuf数据类型
2.protobuf特殊字符
3.protobuf字段映射
4.python依赖
grpcio==1.48.2
protobuf==3.19.6
grpcio-tools==1.48.2
5.编译工具生成py调用文件
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. protobuf/hello_bilibili.proto
6.服务端代码
7.客户端代码
客户端输出
8.protobuf python官方示例
Python Generated Code Guide | Protocol Buffers Documentation
grpc python官方示例(有23个例子)
https://github.com/grpc/grpc/tree/master/examples
python grpc多进程官方示例