方法一、
import datetime start = datetime.datetime.now() end = datetime.datetime.now() print(end-start)
python 计时
原文:https://www.cnblogs.com/pandas-blue/p/11921000.html