[Python/Go]Python与Go

gRPC?

https://grpc.io/

(阅读: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 

  1. You need a glue between them
  2. 调用方法使用命令行:https://stackoverflow.com/questions/19397986/calling-python-function-from-go-and-getting-the-function-return-value?lq=1

C <=> Go

https://golang.org/cmd/cgo/

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

posted @ 2020-09-10 10:49  炎峰森林影  阅读(282)  评论(0编辑  收藏  举报