如何使用Brython将Python编译为Javascript?我想在我的电脑上这样做,所以我可以使用nodejs运行Javascript,例如。如何使用Brython将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