iOS 上的 Python 或 Ruby 解释器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4772591/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-18 17:27:16  来源:igfitidea点击:

Python or Ruby Interpreter on iOS

iphonepythonrubyioslua

提问by YURI

I found this application on the app store: iLuaBoxand I wondered if there was anything else like this for the iPhone without jailbreaking but instead for Python or Ruby?

我在应用程序商店找到了这个应用程序:iLuaBox,我想知道是否还有其他类似的东西可以在没有越狱的情况下用于 iPhone 而不是用于 Python 或 Ruby?

Lua is probably similar for me to play around with the basic programming I do anyway but I thought I would just ask)

无论如何,Lua 对我来说可能与我所做的基本编程相似,但我想我会问)

回答by TheSquad

The Agreement about Apple not accepting any coding language layer has been removed not too long ago.

不久前,关于苹果不接受任何编码语言层的协议已被删除。

I guess we will have to wait a little to see complex language like Python and Ruby interpreter.

我想我们将不得不等待一段时间才能看到像 Python 和 Ruby 解释器这样的复杂语言。

Since Lua is a scripting language, it is easier to port it.

由于 Lua 是一种脚本语言,因此更容易移植它。

回答by Greg Fairbrother

If you just want to be able to run ruby and python scripts, codetogo lets you do that.

如果您只想能够运行 ruby​​ 和 python 脚本,codetogo 可以让您做到这一点。

http://itunes.apple.com/us/app/codetogo/id382677229?mt=8

http://itunes.apple.com/us/app/codetogo/id382677229?mt=8

It gets around it by sending your code to a server, running it and then sending back the result.

它通过将您的代码发送到服务器,运行它然后发回结果来绕过它。

回答by Titusz

There is a simple native Python interpreter for IOS available now. No jailbreak needed: http://itunes.apple.com/us/app/pypad/id428928902?mt=8

现在有一个适用于 IOS 的简单原生 Python 解释器。无需越狱:http: //itunes.apple.com/us/app/pypad/id428928902?mt=8

回答by dylan

there is also python math which is free but it has its modules restricted to the math stuff but it allows you to sync .py scripts from itunes so you could import any modules that you need

还有免费的python math,但它的模块仅限于数学内容,但它允许您从itunes同步.py脚本,以便您可以导入您需要的任何模块

回答by Viktor Apoyan

A Python module that allows running Lua code from Python in a sandbox. Intended to execute arbitrary, possibly unsafe code submitted by users.

一个 Python 模块,允许在沙箱中从 Python 运行 Lua 代码。旨在执行用户提交的任意、可能不安全的代码。

Source code

源代码

回答by chown

A python interpreter App called Python for iOSis available on the App store:

App store 上有一个名为Python for iOS 的Python 解释器应用程序:

http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8&uo=4

http://itunes.apple.com/us/app/python-for-ios/id485729872?mt=8&uo=4



Full disclosure:I am the sole creator/developer of the Python for iOSApp.

完全披露:我是iOS应用程序Python的唯一创建者/开发者。

回答by T_T

http://pythonforios.com/

http://pythonforios.com/

Try the above mentioned app. Not for free, but I guess it will do the trick

试试上面提到的应用程序。不是免费的,但我想它会成功

回答by Rob Dawson

There is now a statically compiled Ruby variant for iOS: http://www.rubymotion.com/

现在有一个用于 iOS 的静态编译 Ruby 变体:http: //www.rubymotion.com/

This has been built on top of the well established MacRuby framework.

它建立在完善的 MacRuby 框架之上。

回答by spongefile

Pythonista by omz:software (I have no affiliation) just came out for the iPad and it looks pretty good. Has an extended keyboard, code completion and other nice things.

Pythonista by omz:software(我没有从属关系)刚刚为 iPad 推出,它看起来很不错。有一个扩展的键盘、代码完成和其他好东西。

http://omz-software.com/pythonista/

http://omz-software.com/pythonista/

App Store link: http://itunes.apple.com/app/id528579881

应用商店链接:http: //itunes.apple.com/app/id528579881