简体   繁体   English

AppEngine:即时运行 Python 代码

[英]AppEngine: Running Python code on the fly

Hello Python developers! Python 开发者您好!

I'm a Java one and I know that there is a way of running Java code on the fly, but my question is, is there any way to do that with Python?我是一个 Java 的人,我知道有一种方法可以即时运行 Java 代码,但我的问题是,有什么方法可以用 Python 做到这一点吗?

The main goal here is to enable middle-school students to start coding with chromebooks from day one on Python.这里的主要目标是让中学生从 Python 的第一天开始使用 Chromebook 进行编码。

I've been looking for some resources, but I got nothing so far.我一直在寻找一些资源,但到目前为止我一无所获。

Thanks a lot!非常感谢!

http://shell.appspot.com might be of your interest. http://shell.appspot.com可能是您的兴趣所在。 (there's a link to the source code too) (也有源代码的链接)

Hey, I just recovered a link to a nice page I used in the past.嘿,我刚刚恢复了一个指向我过去使用的漂亮页面的链接。 It shows the execution flow of a Python script.它显示了 Python 脚本的执行流程。 Students I taught found it very useful in terms of comparing with other languages they new already, eg Java, how stack and arguments are being passed to the functions, memory allocations, etc:我教过的学生发现它在与他们已经学习的其他语言进行比较方面非常有用,例如 Java,如何将堆栈和 arguments 传递给函数,memory 分配等:

http://people.csail.mit.edu/pgbovine/python/tutor.html http://people.csail.mit.edu/pgbovine/python/tutor.html

(click on "Visualize execution" button beneath the window with the code) (点击带有代码的window下方的“可视化执行”按钮)

IPython allows you to run python interactively from a web environment. IPython允许您从 web 环境以交互方式运行 python。 You can try a demo here: IPython .您可以在此处尝试演示: IPython You can set this up on a local computer and have you students view it from their machines.您可以在本地计算机上进行设置,让学生从他们的计算机上查看。

Coderbuddy let's you create and run AppEngine applications online, without having to download the AppEngine SDK, Python, or anything for that matter. Coderbuddy让您可以在线创建和运行 AppEngine 应用程序,而无需下载 AppEngine SDK、Python 或任何与此相关的内容。

I use that when I do workshops, so I don't have to bother with making sure that everyone has the SDK and proper configurations in their machines.我在参加研讨会时使用它,因此我不必费心确保每个人的机器上都有 SDK 和正确的配置。 We just go straight to coding.我们只是 go 直接编码。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM