使用 import time 引入time库 1.time库的时间获取函数 2、时间格式化函数 strftime(),格式化输出 注意strftime函数中用到的格式化控制符: strptime(),strftime的逆操作,输出time.gmtime()获取的那一串字符串 3、程序计时函数 perf_counter()函数 sleep函数,暂停时间函数