Date6

模块:from module_test  import  name  

路径:os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

time模块:

time.time()  #时间戳

time.sleep(3)  #休眠3秒

time.gmtime()  #结果为UTC时区

time.localtime(****) #结果为UTC+8时区(中国)

猜你喜欢

转载自www.cnblogs.com/genghenggao/p/9046707.html