时间用法
1 时间戳
1 k = time.localtime(test_sample['createtime'][i]) 2 t = time.strftime("%Y/%m/%d %H:%M:%S", k) #注意空格也会在list t中 3 print(t)
test_sample中是已知的时间戳 如上将时间戳转化为具体的时间 参考:https://www.cnblogs.com/jfl-xx/p/8024596.html
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
更多精彩