是否可以将 Python 与 Go 一起使用
可能的重复:
将 python 与更快的语言混合以在 GAE 中进行优化
如果你能在 Go 中使用 python,我会很受伤,我刚刚向 Go 介绍了自己(错误的哈哈,虽然它很久以前就存在了),感觉像 python,我喜欢它,但我不打算学习它是因为python 满足了我,我只是想知道,是否可以使用 python sdk 和 Go 在 google 应用引擎上创建一个应用程序来执行某些任务?
我已经知道他们有一个完全不同的 go
编辑
我想我刚刚问了一个愚蠢的问题,因为我刚刚发现你必须编译 Go!
无论如何,我今天会保留这个问题,也许我会得到一个出乎我意料的好答案。
Possible Duplicate:
Mixing python with a faster language for optimization in GAE
I wounder if you can use python with Go, I have just introduced myself to Go (by mistake lol, although that it exists long time ago) to Go, it feels like python, I like it, but I'm not planning to learn it because python satisfies me, I'm just wondering, is it possible to create an app on google app engine using python sdk and Go for some tasks?
I already know that they have a totally different for go
EDIT
I think i have just asked a stupid question because I have just found out that you have to compile Go!
anyway I'll keep the question for today maybe I'll have a good answer that I'm not expecting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在同一个应用程序中使用不同的语言——但是,每种语言都有不同的版本。他们将有权访问相同的数据存储和内存缓存,但是 CRON 和(我认为)任务仅适用于活动版本(因为它们使用相对路径定位主版本 url)。您必须使用 HTTP 在版本之间“对话”。您还可以使用 Python 编写主应用程序以及 Go 或 Java 后端等。Go
是编译的,但 Go SDK 会为您完成所有工作,每次更改代码时都会重新编译应用程序。尝试这种方式是非常简洁和有趣的。
You can use different languages in the same app -- however, each one in a different version. They will have access to the same datastore and memcache, however CRON and (I think) tasks will only work for the active version (because they target the main version url using a relative path). You would have to "talk" between versions using HTTP. You can also have the main app in Python and a Go or Java backend, etc.
Go is compiled, but the Go SDK do all the work for you, re-compiling the app each time you change your code. It is pretty neat and fun to try Go this way.