import time import re tt = re.findall('^\d{13}',str(time.time()).replace('.',''))[0] print(tt)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/215298.html原文链接:https://javaforall.net
Python获取当前时间戳-毫秒importtimeim re findall d 13 str time time replace 0 print tt
import time import re tt = re.findall('^\d{13}',str(time.time()).replace('.',''))[0] print(tt)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/215298.html原文链接:https://javaforall.net