登入

HWJ 何伟俊 / DMapManager · 文件

GitLab

  • 转到仪表盘
  • 项目
  • 活动
  • 文件
  • 提交
  • 构建 0
  • 图表
  • 里程碑
  • 问题 0
  • 合并请求 0
  • 标记
  • 维基
  • 派生
  • 网络
  • DMapManager
  • app
  • util
  • component
  • StructuredPrint.py
  • change
    1c3c5409
    nheweijun 在
    2021-08-02 09:06:36 +0800  
    创建 浏览文件 »
StructuredPrint.py 338 Bytes
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13
# coding=utf-8
#author:        4N
#createtime:    2021/5/17
#email:         nheweijun@sina.com
import datetime


class StructurePrint:

    @classmethod
    def print(cls,mes, type="info"):
        message = "[{}] {} {}".format(type.upper(), datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'), mes)
        print(message)