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

python 里像 SimpleHTTPServer 这样可以直接当做脚本执行的模块还有哪些?

  •  
  •   yingluck ·
    zhao-ji · 2014-08-06 16:18:55 +08:00 · 4538 次点击
    这是一个创建于 3522 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    2014-08-07 21:23:50 +08:00
    limon
        1
    limon  
       2014-08-06 16:27:16 +08:00   ❤️ 1
    venv, ensurepip
    est
        2
    est  
       2014-08-06 16:35:53 +08:00   ❤️ 1
    python -m pdb xxxx.py

    调试神器。一般人我不告诉TA。
    ThunderEX
        3
    ThunderEX  
       2014-08-06 16:45:09 +08:00   ❤️ 1
    python -m timeit
    python -m calendar
    yingluck
        4
    yingluck  
    OP
       2014-08-06 16:46:29 +08:00
    @est 这个我一般直接 pdb XXX.py 这样用
    yingluck
        5
    yingluck  
    OP
       2014-08-06 16:50:43 +08:00
    @ThunderEX Linux 下 shell 也有条类似命令 cal , 不过是显示一个月,当天还有黑色标记
    dorentus
        6
    dorentus  
       2014-08-06 17:34:51 +08:00   ❤️ 1
    @yingluck
    其实 cal 也可以显示一年的,像这样:cal 2014
    xdata
        7
    xdata  
       2014-08-06 17:40:04 +08:00   ❤️ 2
    python -m json.tool
    例如 vim 下直接用这个格式化json..
    yjfuk
        8
    yjfuk  
       2014-08-06 17:54:49 +08:00   ❤️ 1
    echo '{"json":"obj"}' | python -m json.tool
    fay
        9
    fay  
       2014-08-07 21:23:50 +08:00
    python -m unittest 单元测试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3496 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1298ms · UTC 11:07 · PVG 19:07 · LAX 04:07 · JFK 07:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.