推荐学习书目
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
bingoAI
0.01D
V2EX  ›  Python

Python 如何再__name__模块下代码快速注释或者返回

  •  
  •   bingoAI · Sep 18, 2019 · 2046 views
    This topic created in 2495 days ago, the information mentioned may be changed or developed.
    __name__ == "__main__" 下有大量单行和非连续多行注释,不知有没有类似跳出函数的“return”单行命令跳出__name__?,不希望用“#”。

    if __name__ == "__main__":
    ret = check_sw_install('jython --version')
    #注释
    代码块
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: d3e9c8b8 · 33ms · UTC 07:53 · PVG 15:53 · LAX 00:53 · JFK 03:53
    ♥ Do have faith in what you're doing.