是否可以在web broswer上运行pygame应用程序,Django的目的是什么? [英] Is it possible to run a pygame app on web broswer, and what is the purpose of Django?
本文介绍了是否可以在web broswer上运行pygame应用程序,Django的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以创建一个pygame应用程序并在Web浏览器上运行它?我听说过这个公共网关接口(CGI),所以我能够围绕这个实现它吗?另外,Django的用途是什么,CGI已经允许python程序在broswer上运行? Django甚至开始做什么?
解决方案
如果你的意思是 http ://en.wikipedia.org/wiki/Pygame [ ^ ], http://www.pygame.org [ ^ ],我认为它无法定位Web应用程序。
如果您的目标包括在客户端使用Python(这是我可以解释你的在Web浏览器上运行它),看看 pyjs ,它同时针对Web和桌面。请参阅:
http://en.wikipedia.org/wiki /Pyjamas_%28software%29#Pyjs.org_Fork [ ^ ],
http://pyjs.org/ [ ^ ]。
关于Diango的问题几乎不能被称为正确。为什么不直接阅读呢?请参阅:
http://en.wikipedia.org/wiki/Django_%28web_framework %29 [ ^ ],
https://docs.djangoproject.com/en/1.6/ [ ^ ]
https://docs.djangoproject.com/en/1.6/intro/overview/ [ ^ ]。
-SA
Is it possible to create a pygame app and run it on the web browser? I've heard of this common gateway interface (CGI), so would I be able to implement it around this? Also, what is the use of Django is CGI already allows the python program to run on a broswer? What does Django even do to begin with?
解决方案
If you mean http://en.wikipedia.org/wiki/Pygame[^], http://www.pygame.org[^], I don't think it can target Web applications.
If your goal includes using Python on client side (this is how I could interpret your "run it on the Web browser"), look at pyjs instead, which targets both Web and desktop. Please see:
http://en.wikipedia.org/wiki/Pyjamas_%28software%29#Pyjs.org_Fork[^],
http://pyjs.org/[^].
The question about Diango hardly can be called correct. Why not just reading about it? Please see:
http://en.wikipedia.org/wiki/Django_%28web_framework%29[^],
https://docs.djangoproject.com/en/1.6/[^]
https://docs.djangoproject.com/en/1.6/intro/overview/[^].
—SA
这篇关于是否可以在web broswer上运行pygame应用程序,Django的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文