[Python/Go]Python与Go
gRPC?
(阅读:https://jiajunhuang.com/articles/2019_12_27-why_grpc.md.html)
Python vs Go
https://www.bitdegree.org/tutorials/go-vs-python/
Python: 机器学习,数据分析,丰富的框架和库,使用代码比Go更少
Go: 接口/后端开发(高并发,Http访问性能),性能比Python快
PS: 具体比较请自行搜索,请理智对同一应用领域比较
混合开发
Python <=> Go
- You need a glue between them
- 调用方法使用命令行:https://stackoverflow.com/questions/19397986/calling-python-function-from-go-and-getting-the-function-return-value?lq=1
C <=> Go
C/C++ => Python
https://docs.python.org/zh-cn/3.8/extending/extending.html
Socket 案例(TCP/IP)
Python
https://pymotw.com/2/socket/tcp.html
Go
https://coderwall.com/p/wohavg/creating-a-simple-tcp-server-in-go
个性签名:做要做好,做到不三不四不如不做。