Pythong Time&datetime

  Time模塊 常用的方法 import time  time.time()   #返回當前時間的時間戳(1970紀元後經過的浮點秒數) time.localtime()  #本地時間 time.mktime(a) #轉換時間戳 time.sleep(secs) #線程推遲運行時間    程序推遲進行     s=time.strftime('%Y-%m-%d')  #獲取系統當前時間 轉換字符
相關文章
相關標籤/搜索