Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直在试图弄清楚如何将 python 文件转换为 JavaScript 文件。
我下载了最新的睡衣并将其安装在我的 c:\Python26\Lib\site-packages 文件夹中。我在 Windows 7 上运行 Python 2.6。
看起来您应该能够将 Python 文件转换为 JavaScript,如下所示:
python -m pyjs.pyjampiler -w directory/of/source -r main.py -o /output/path.js