Tag: brython

如何使用Brython编译Python到Javascript(使用nodejs运行)?

我如何使用Brython来编译Python到Javascript? 我想在我的电脑上做到这一点,所以我可以运行Javascript的nodejs,例如。 $ python hello.py Hello world $ brython hello.py -o hello.js $ node hello.js Hello world Brython网站上的例子只是解释了在浏览器http://www.brython.info/index_en.html中如何做到这一点