python中常用基础时间:
时间的格式化:
1、str方法,示例如下:
2、strftime方法,示例如下:
3、strptime方法,示例如下:
4、使用第三方库dateutil包中的parser.parse,示例如下: