Python 获取并输入以后日期工夫
from datetime import datetime
import time
a=time.strftime('%Y_%m_%d_%H_%M_%S',time.localtime(time.time()))
print(a,type(a))
Python 获取并输入以后日期工夫
from datetime import datetime
import time
a=time.strftime('%Y_%m_%d_%H_%M_%S',time.localtime(time.time()))
print(a,type(a))