python學習之strptime和strftime方法

strftime 描述 Python time strftime() 函數接收以時間元組,並返回以可讀字符串表示的當地時間,格式由參數format決定。 語法 strftime()方法語法: time.strftime(format[, t]) 參數 format -- 格式字符串。 t -- 可選的參數t是一個struct_time對象。 返回值 返回以可讀字符串表示的當地時間。 strptim
相關文章
相關標籤/搜索