推荐学习书目
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 · 1991 views
    This topic created in 2466 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   ·   2454 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:48 · PVG 18:48 · LAX 03:48 · JFK 06:48
    ♥ Do have faith in what you're doing.