[英]Is there a JavaScript-based Python?
I have a lot of JavaScript I need to write.我有很多需要编写的 JavaScript。 I can do that, but I have some Python already which does something similar.
我可以做到这一点,但我已经有一些 Python 可以做类似的事情。 I'd much prefer to adapt that and have it run within the browser.
我更喜欢调整它并让它在浏览器中运行。
There's the C-based reference implementation, and there's Jython in Java.有基于 C 的参考实现,还有 Java 中的 Jython。 Is there a JavaScript implementation along the same lines?
是否有相同的 JavaScript 实现?
I have looked, but it may be that my google-fu has failed me.我看过了,但可能是我的 google-fu 失败了。 And it seems like something that ought to exist.
这似乎是应该存在的东西。 Have I missed it?
我错过了吗?
You may be looking for something like WebAssembly
, used for running non JavaScript code in the browser.您可能正在寻找类似
WebAssembly
东西,用于在浏览器中运行非 JavaScript 代码。 pyodide
would be a good starting point pyodide
将是一个很好的起点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.