首页
Java
登录
6mi
u
盘
搜
搜 索
Java
Python输出当前时间
Python输出当前时间
xiaoxiao
2021-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
)