• 暂时解决Sublime Text 2不支持input问题(转)


    (1)打开当前python文件

    (2)然后

    Tools -> Command Palette

    Tools  Command Palette

    (3)SublimeREPL Python RUN current file

    SublimeREPL Python RUN current file

    (4)就会打开新窗口,显示python的shell,可以供你输入参数了:

    show shell allow input

    (5)接着就可以输入参数,再按Enter,即可输入:

    can accept inputed para

     

    如上的运行当前Python文件,也可以通过:

    Tools -> SublimeREPL -> Python -> RUN current file

    Tools SublimeREPL Python run current file

     

    12.另外,关于窗口显示,设置为上下显示,即2 row的形式,更方便我们调试代码:

    View -> Layout -> Rows: 2

    View Layout Rows 2

    然后再去运行:

    Tools -> SublimeREPL -> Python -> RUN current file

    好像还是默认同行显示:

    new windows still in same line

    但是我们可以手动拖动到下面那栏:

    drag from above to bottom line

    就可以上下显示了:

    has draged to bottom line

    然后接着就可以正常调试了:

    normal debug in show 2 row

     

    13.另外,又试了试,

    第二次,再去

    Tools -> SublimeREPL -> Python -> RUN current file

    运行Python代码时,结果又出现其他错误:

    D: mpdev_install_rootPython27_x64python.EXE: can’t open file ‘$file_basename’: [Errno 2] No such file or directory


    ***Repl Closed***

     

    python.EXE cant open file file_basename Errno 2 No such file or directory

    所以,真心的,不好用。

  • 相关阅读:
    Mach-O 加载命令(Load commands)
    Mach-O文件介绍之loadcommand
    趣探 Mach-O:加载过程
    Forking and Executing the Process
    XNU加载Mach-O和dyld
    OSX内核加载mach-o流程
    App Launch Sequence on iOS
    操作系统 = 内核 + 服务
    OS X kernel architecture
    OSX架构概述
  • 原文地址:https://www.cnblogs.com/xingmeng/p/3665805.html
Copyright © 2020-2023  润新知