时间:2022-06-22 09:38:35 | 栏目:Python代码 | 点击:次
import time time.time()
import time time.ctime()
import time time.gmtime()
import time t=time.gmtime() time.strftime("%Y-%m-%d %H:%M:%S", t)
import time timeStr='2022-04-10 12:55:20' time.strptime(timeStr,"%Y-%m-%d %H:%M:%S")
import time startTime = time.perf_counter() startTime = time.perf_counter() print(endTime-startTime)
import time time.sleep(5)