且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是***的Python库模块框架代码?

更新时间:2023-10-24 07:50:39

#!/usr/bin/env python
# coding: utf-8
"""
    package.module
    ~~~~~~~~~~~~~

    A description which can be long and explain the complete
    functionality of this module even with indented code examples.
    Class/Function however should not be documented here.

    :copyright: year by my name, see AUTHORS for more details
    :license: license_name, see LICENSE for more details
"""

模块可能包含或不包含 main 函数,因此不是模板。

The module may or may not contain a main function so that's not part of the template.