datetime的使用和与str之间的相互转换

# 把时间转为字符串
datetime.strptime("2018-12-28 18:30:00", "%Y-%m-%d %H:%M:%S")
posted @ 2018-12-28 20:59  散落的千本樱  阅读(1550)  评论(0)    收藏  举报