Python The standard programe tructure

代码
"""
Copyright, Version information and Declaration Here!
"""

__author__ = "Allen"
__version__ = "$Revision: 1.0 $"
__date__ = "$Date: 2010/08/19 9:57:19 $"
__copyright__ = "Copyright (c) 2010 Allen"
__license__ = "Python"

def ProgarmeName(params):
"""
******This funciton's descripton here******
"""
return
if __name__ == "__main__":
ProgarmeName(params)

 Note that the keyword def starts the function declaration, followed by the function name, followed by the arguments in parentheses. Multiple arguments (not shown here) are separated with commas.

Also note that the function doesn't define a return datatype. Python functions do not specify the datatype of their return value; they don't even specify whether or not they return a value. In fact, every Python function returns a value; if the function ever executes a return statement, it will return that value, otherwise it will return None, the Python null value.

Work for fun,Live for love!
原文地址:https://www.cnblogs.com/allenblogs/p/1803211.html