如何在 Python 中以毫秒为单位获取当前时间?
使用time.time():
time.time()
import time def current_milli_time(): return round(time.time() * 1000)
然后:
>>> current_milli_time() 1378761833768