Is there an alternative to making educational Java applets for physics simulations like projectile motion, gravity, etc?
If you want it to run in a browser, you could use PyJamas - which is a Python-to-Javascript compiler and set of tools.
I'm not sure how well it is maintained these days, though.
In this day and age, you might look to the HTML 5 canvas & JS.
While I'm all for the "HTML5 & JS", you can consider Jython and simply write a Java Applet in Python (2.2.3, but...) Java is not only a language, so you're free to choose.
You can run IronPython in Silverlight applications:
http://www.voidspace.org.uk/ironpython/silverlight/index.shtml
Brython is your alternative. It allows you to define "text/python" scripts.
You can run CPython in the browser using empythoned. There is no proper interface from Python to the browser though, so it will be hard to do any GUI applications.
来源:https://stackoverflow.com/questions/8786842/python-alternative-to-java-applet