python 用于脚本和模块的头部python

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 用于脚本和模块的头部python相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env python
#! coding=utf-8

""" FOR SCRIPT """

"""
Copyright (C), <<year>>        
FILE RUN: <<filename>>
<<description>> 
AUTHOR: <juan.armaguedon@gmail.com>
CREATION DATE: <<date>>
LAST MODIFIED DATE: <<date>>
VERSION: <<version>> 
PYTHON VERSION: 2.7
STATUS: <<produccion / desarrollo>>
INPUT: <<linput>> 
OUTPUT: <<loutput>> 
"""


""" FOR MODULES """
# echa un vistazo: http://epydoc.sourceforge.net/manual-fields.html#module-metadata-variables

__author__ = "Rob Knight, Gavin Huttley, and Peter Maxwell"
__copyright__ = "Copyright 2007, The Cogent Project"
__credits__ = ["Rob Knight", "Peter Maxwell", "Gavin Huttley",
                    "Matthew Wakefield"]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Rob Knight"
__email__ = "rob@spot.colorado.edu"
__status__ = "Production"



以上是关于python 用于脚本和模块的头部python的主要内容,如果未能解决你的问题,请参考以下文章

利用ngx_python模块嵌入到Python脚本

关于python脚本头部设置#!/usr/bin/python

Python开发新建py文件的自动头部脚本语言

Python脚本性能剖析

Python基础模块

Python的总体结构-----剖析