Python經常使用模塊(time、numpy、pandas、matplotlib)之簡單使用

1、time模塊 經常使用的一種獲取當前時間以及格式化模塊,模塊名稱:time 導入方式:import time 1. 時間元祖屬性 2. 經常使用方法 3. 使用 3.1 導包 import time 3.2 顯示時間戳 print(time.time()) # 顯示時間戳,1937年1月1日0:0:0至今的描述 # time.localtime(timetamp) timetamp 時間戳,
相關文章
相關標籤/搜索