想用python获取当前时期, 格式是2018年1月1日,结果出现上面错误, 处理方法
2018年1月1日
import locale locale.setlocale(locale.LC_CTYPE, ‘chinese’)
在调用strftime格式化日期之前调用