1. 程式人生 > 其它 >python 自己寫個除錯工具

python 自己寫個除錯工具

python 自己寫個除錯工具

程式碼

# -*- coding:utf-8 -*-
import time
import sys


def get_now_time():
    """
    獲取當前日期時間
    :return:當前日期時間
    """
    now = time.localtime()
    now_time = time.strftime("%Y-%m-%d %H:%M:%S"