标签:local 显示 time import time_t port alt str pre
import time
time_tup = time.localtime(time.time())
t1 = time.strftime(‘%Y%m%d%H‘, time_tup)
if t1 <= time.strftime(‘%Y%m%d‘, time_tup) + ‘13‘:
t = time.strftime(‘%Y%m%d‘, time_tup) + ‘00‘
else:
t = time.strftime(‘%Y%m%d‘, time_tup) + ‘12‘
标签:local 显示 time import time_t port alt str pre
原文地址:https://www.cnblogs.com/qiaoer1993/p/11106383.html