Python 之 用时间戳算运行时间

# find all :找到 RE 匹配的所有子串,并把它们作为一个列表返回
tt = re.findall('^d{13}',str(time.time()).replace('.',''))[0] 
# 很长的计算....
v = float(re.findall('^d{13}',str(time.time()).replace('.',''))[0])-float(tt)
print(v)
原文地址:https://www.cnblogs.com/sabertobih/p/13928919.html