模块-时间模块(new)
模块-时间模块 导入: import time 方法: _STRUCT_TM_ITEMS __doc__ __loader__ __name__ __package__ __spec__ altzone asctime clock ctime daylight get_clock_info gmtime localtime mktime monotonic perf_counter process_time sleep strftime strptime struct_time time timezone tzname 常用方法: time.time()获得时间戳 In [3]: time.time() Out[3]: 1508852319.6068738 In [4]: help(time.time) Help on built-in function time in module time: time(...) time() -> floating point number Return the current time in seconds since the Epoch. Fractions of a second may be present if the system clock provides them. time.clock() 返回处理器时间 In [6]: