test_4 实现一个统计函数运行时间
1.datetime显示当前时间
import datetime
import time
def func():
t = datetime.datetime.now()
print t
print "start **************"
l=[]
for i in range(1, 10):
l.append(i)
time.sleep(1)
e = datetime.datetime.now()
print e
print (e - t).seconds
func()