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

提问: Linux 下怎么用 sublime 的 Ctrl+b 编译 python 文件?

  •  
  •   POP · 2015-01-22 15:39:11 +08:00 · 3618 次点击
    这是一个创建于 3375 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Linux 下怎么用 sublime 的 Ctrl+b编译python文件?
    第 1 条附言  ·  2015-01-22 22:20:20 +08:00
    就是linux下sublime 用Ctrl+b运行python,没有回显,不知道该怎么设定Python.sublime-build
    15 条回复    2015-01-23 16:28:07 +08:00
    POP
        1
    POP  
    OP
       2015-01-22 15:39:46 +08:00
    Linux 下怎么用 sublime 的 Ctrl+b,编译Python?
    shajiquan
        2
    shajiquan  
       2015-01-22 17:20:02 +08:00
    没明白这个问题。。。

    sublime 里运行 ctrl + b 执行 python 脚本,其实不是所谓「编译」啦,就是执行一下。你想要达到什么效果?
    repus911
        3
    repus911  
       2015-01-22 19:30:59 +08:00
    python 需要编译么...
    Delbert
        4
    Delbert  
       2015-01-22 20:00:12 +08:00
    生成.pyc?
    hongziki
        5
    hongziki  
       2015-01-22 20:17:02 +08:00 via iPhone
    估计是问快捷键问题。。。
    POP
        6
    POP  
    OP
       2015-01-22 22:06:25 +08:00
    @shajiquan 就是linux下sublime 用Ctrl+b运行python,没有回显,不知道该怎么设定Python.sublime-build
    POP
        7
    POP  
    OP
       2015-01-22 22:06:45 +08:00
    @repus911 是我没说清楚。。。Sorry!就是linux下sublime 用Ctrl+b运行python,没有回显,不知道该怎么设定Python.sublime-build
    POP
        8
    POP  
    OP
       2015-01-22 22:06:56 +08:00
    @Delbert 不是的
    POP
        9
    POP  
    OP
       2015-01-22 22:07:17 +08:00
    @hongziki 对!不知道Python.sublime-build怎么设定
    POP
        10
    POP  
    OP
       2015-01-22 22:08:00 +08:00
    运行环境:ubuntu 12.04
    python版本2.7.3
    sublime Text2
    xuyongli
        11
    xuyongli  
       2015-01-22 22:40:44 +08:00
    tool-buildsystem
    zerh925
        12
    zerh925  
       2015-01-23 09:41:29 +08:00
    需要什么回显?sublime的ctrl+b就直接调用系统的python运行代码了,或者ipython。
    POP
        13
    POP  
    OP
       2015-01-23 09:58:29 +08:00
    @zerh925 没有啊。。。我在Ubuntu下Ctrl+B没有显示的
    zerh925
        14
    zerh925  
       2015-01-23 13:34:12 +08:00
    @POP 你没装sublimeREPL吧 - -!
    POP
        15
    POP  
    OP
       2015-01-23 16:28:07 +08:00
    @zerh925 不是!已经解决了~~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2800 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:34 · PVG 20:34 · LAX 05:34 · JFK 08:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.