Python输出当前时间

xiaoxiao2021-02-28  14

应用中有时需要查看一下服务当前时间,代码如下:

#!/usr/bin/env python # _*_ coding: utf-8 _*_ import time print time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
转载请注明原文地址: https://www.6miu.com/read-2000305.html

最新回复(0)