- 如何将numpy的datetime64对象转换为datetime的datetime对象,比如:
方法一:使用np.datetime64()
和tolist()
函数
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 7 13:10:04 2020
@author: 15025
"""
import numpy as np
import datetime
class NumpyStudy:
@staticmethod
def swapDate64ToDatetime():
date64