python编程模板_Python编程模板

#!/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())

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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值