python处理xls文件 python获取当前时间方法?

python获取当前时间方法?#使用时间获取当前时间时间.localtime()#使用时间模块的strftime方法格式化日期,:#格式为2018年5月28日17:36:35打印(时间.strftim

python获取当前时间方法?

#使用时间获取当前时间时间.localtime()

#使用时间模块的strftime方法格式化日期,:

#格式为2018年5月28日17:36:35

打印(时间.strftime(%Y-%m-%d%H:%m:%S“时间.localtime())

#格式为2018年5月28日星期一17:36:35表格

打印(时间.strftime(%a)%b%d%H:%M:%S%Y“时间.localtime())

蟒蛇3