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
css3
V2EX  ›  Python

sublimeRepl 运行 Python 时,假死怎么办

  •  
  •   css3 · 2018-09-03 19:17:49 +08:00 · 1604 次点击
    这是一个创建于 2060 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一运行就未响应了,过个几十秒,就会把所有的结果全显示出来(应该是一行一行慢慢输出出来的)

    有 input()交互,必须得用 sublimeREPL,直接 ctrl+b 运行不会出现这种问题,但不支持 input()交互

    PythonAnswer
        1
    PythonAnswer  
       2018-09-03 19:59:49 +08:00 via iPhone
    控制台跑
    ku360517703
        2
    ku360517703  
       2018-09-03 23:36:58 +08:00
    大量输出有性能问题, 建议写日志到文件查看。或控制台
    也试过一些 hack 源码的方法,没见产生作用。
    css3
        3
    css3  
    OP
       2018-09-04 10:09:17 +08:00
    @ku360517703 是大量输出的时候假死,看来是没有解决办法了,google 找了一个办法,半行半不行的样子,不会假死了,但是程序出错了一直卡在那里,错误也不输出 ,反正就一直卡在那里

    https://github.com/wuub/SublimeREPL/issues/469
    jiangbingo
        4
    jiangbingo  
       2018-09-04 17:34:58 +08:00
    sublimetext 添加 terminal
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3221 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 14:29 · PVG 22:29 · LAX 07:29 · JFK 10:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.