暂时解决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:\tmp\dev_install_root\Python27_x64\python.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

所以,真心的,不好用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值