python杂记
获取毫秒和打印毫秒
time.time() 不是获取不到毫秒,是print直接打印没有打印出来
import time
import datetime
t1 = time.time()
print t1
print "num=%10.10f" % t1
print('Datetime in milliscond using now()',datetime.datetime.now())
#1561290509.04
#num=1561290509.0394361019
#('Datetime in milliscond using now()', datetime.datetime(2019, 6, 23, 19, 48, 29, 39495))