摘要: 1.问题描述 针对Django序列化输出日期时,为了格式化日期,封装了如下方法: import locale def datetime_fmt(): locale.setlocale(locale.LC_CTYPE, 'chinese') return '%Y年%m月%d日 %H:%M:%S' 但是 阅读全文
posted @ 2020-08-02 17:38 小公瑾 阅读(2140) 评论(2) 推荐(0) 编辑