首页 > 编程语言 > 详细

Python编程模板

时间:2017-02-08 00:35:04      阅读:198      评论:0      收藏:0      [点我收藏+]
#!/usr/bin/env python
#-*- encoding:utf8 -*-
#---------------------------------------------------------------------------------------
#           FILE:    
#          USAGE:    Plog.py [-h] [Copy PEP 8]
#    DESCRIPTION:    Copy python style guide and coding standard .
#                    The default copy example is the current text .
#                    Dont.t find text on other directories .
#        OPTIONS:    see fuction ‘usage‘ below 
#           BUGS:    ---
#        VERSION:    1.0
#        PROJECT:    XXX
#      COPYRITHT:    Copyright(c)2002-2020 Python, All Rights Reserved
#---------------------------------------------------------------------------------------

# import python module

#---------------------------------------------------------------------------------------
#   define python import modules .
#---------------------------------------------------------------------------------------

#   Python Class comments

#========   CLASS   ====================================================================
#          NAME:        
#   DESCRIPTION:    Display usage information for this script.
#  PARAMETER  1:    ---
#=======================================================================================

            
#   Python main comments

#---------------------------------------------------------------------------------------
#   define python main .
#---------------------------------------------------------------------------------------

if __name__ == "__main__":
    #格式化打印
    star="\033[1;33;40m=\033[0m"
    rx="\033[1;31;40m"
    ry="\033[0m"
    gx="\033[1;32;40m"
    gy="\033[0m"
    nowStamp = int(time.time())
    nowtime = datetime.datetime.now()
    agotime = nowtime - datetime.timedelta(seconds = 0)
    agoctime = str(agotime.ctime())

本文出自 “关注后台设计” 博客,转载请与作者联系!

Python编程模板

原文:http://xleft.blog.51cto.com/955567/1895717

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!