python ==module 'datetime' has no attribute 'strptime'

示例:

datetime.datetime.strptime(string, "%Y-%m-%d %H:%M:%S")

 

换成时分秒格式,数据库存储为datetime格式

你可能感兴趣的:(python,python)