获取两个动作之间的时间差
import datetime t1 = datetime.datetime.now() print(t1) print("经过的时间") t2 = datetime.datetime.now() print(t2) t = t2 - t1 print(t)
posted on 2020-04-04 18:29 芦荟~lh 阅读(107) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 芦荟~lh Powered by .NET 9.0 on Kubernetes