Python3 time模塊

一、導入:import time 二、三種時間表示方式: 時間戳(timestamp):即指從1970年1月1日 00:00:00開始按秒計算的偏移量,是float類型 格式化時間字符串(format string):即‘2020-1-30’之類 結構化時間(struct_time): time.struct_time(tm_year=2020, tm_mon=1, tm_mday=30, tm_
相關文章
相關標籤/搜索