执行浏览器里面蟒蛇code没有的Jython [英] Execute python code inside browser without Jython

查看:124
本文介绍了执行浏览器里面蟒蛇code没有的Jython的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在浏览器比使用Jython和一个小程序来执行蟒蛇code,其他的方式?

Is there a way to execute python code in a browser, other than using Jython and an applet?

执行不必处理有关图形东西。例如,仅仅总结二进制1Gb的文件(由浏览器用户选择)的所有数字,然后将结果返回到服务器

The execution does not have to deal with anything related to graphics. For example, just sum all the digits of a binary 1Gb file (chosen by the browser user) and then return the result to the server.

据我所知,蟒蛇可以远程执行在浏览器之外,但我的要求是在浏览器中做。

I am aware that python can be executed remotely outside a browser, but my requirement is to be done inside a browser.

确实,我认为是理所当然的用户将继续执行或不正确的,并会被要求这样做的,而这一切安全的东西...但是这不是我的问题。

For sure, I take for granted the user will keep the right to execute or not, and will be asked to do so, and all this security stuff... but that is not my question.

推荐答案

项目都有一个编译器叫做pyjs果然Python的$ C $ ç成JavaScript。

The Pyjamas project has a compiler called pyjs which turns Python code into Javascript.

这篇关于执行浏览器里面蟒蛇code没有的Jython的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆