python datetime笔记 python datetime笔记_薄荷绿-记事本python datetime笔记获取当前时间,并通过字符串输出。格式为:%Y-%m-%d %H:%M:%S'datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S' )