python time

import time 三種結構:時間戳,字符串,struct_timeweb time.time() 當下時間戳 time.local(時間戳) 時間戳 -> 當地時區的struct_time time.strptime(‘2018-10-07’, ‘%Y-%m-%d’) 字符串 -> strcut_time time.strftime(’%Y-%m-%d’, struct_time) stru
相關文章
相關標籤/搜索