V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
itfanr
V2EX  ›  Python

神奇的网站 浏览器里调试 Python

  •  
  •   itfanr ·
    itfanr · 2014-03-21 21:58:31 +08:00 · 5391 次点击
    这是一个创建于 3686 天前的主题,其中的信息可能已经有所发展或是发生改变。
    10 条回复    2018-02-28 16:43:49 +08:00
    inee
        1
    inee  
       2014-03-21 22:08:10 +08:00
    早就有这类的吧
    ritksm
        2
    ritksm  
       2014-03-21 22:27:50 +08:00
    7anshuai
        3
    7anshuai  
       2014-03-22 12:44:40 +08:00
    代码执行过程可视化,这个很赞
    sunocean
        4
    sunocean  
       2014-03-22 14:25:35 +08:00
    可以躺床上用ipad玩了,谢谢楼主
    itfanr
        5
    itfanr  
    OP
       2014-03-22 19:56:27 +08:00
    @sunocean
    @7anshuai 感觉很有意思啊!
    openroc
        6
    openroc  
       2014-03-22 23:42:38 +08:00
    教学不错,:)
    ericls
        7
    ericls  
       2014-03-23 10:39:19 +08:00
    python.org也可以的
    yegle
        8
    yegle  
       2014-03-23 12:05:46 +08:00   ❤️ 2
    这种东西太多了。但是不是所有这类web版Python都是一样的

    iPython是提供了web版(运行ipython notebook),但是需要pyzmq之类东西,反正我在OS X下是没成功跑起来的。实际输入后的内容是发送到服务端的intepreter然后执行的。看了一下pythontutor.com也是这样,用GET请求将源码发送到服务器然后执行。

    python.org提供的interactive shell是host在pythonanywhere上的,对应的一个linux container,加上一个ajax的terminal实现动态显示。

    最牛逼的要放在最后说。 http://repl.it/ 乍一看和上面说的各种网站没区别。你错了…这个网站是将CPython编译成Javascript然后在浏览器里执行。源码在 https://github.com/replit/empythoned 使用的是 https://github.com/kripken/emscripten 项目将LLVM的byte code翻译成Javascript,让几乎任何解释型语言能在浏览器里执行。 http://repl.it/languages 列出了支持的语言列表。
    ericls
        9
    ericls  
       2014-03-23 23:42:27 +08:00
    @yegle 这个太牛叉了
    itfanr
        10
    itfanr  
    OP
       2018-02-28 16:43:49 +08:00 via Android
    @yegle 非常好
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5714 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 03:07 · PVG 11:07 · LAX 20:07 · JFK 23:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.