import time
y=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))
print(y)
转载请注明:源码巴士 » python使用time包显示年月日的方法
import time
y=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))
print(y)
转载请注明:源码巴士 » python使用time包显示年月日的方法