Python获取时间

163 阅读1分钟
# -*- coding: UTF-8 -*-
import time
CurrTime = time.clock()#不过他们会说这个在3.3已经被抛弃了
CurrTime = time.time()#后面版本的用法是time()