python 计算耗时

发布时间:2019-09-22 07:59:02编辑:auto阅读(1845)

    print (datetime.datetime.now())
    import time as tm
    t1 = tm.time()
    .......................
    
    t2 = tm.time()
    
    
    print "==========total take {0}".format(t2 - t1)

关键字