Created
March 20, 2015 13:23
-
-
Save sungitly/dfc309d6500b64088036 to your computer and use it in GitHub Desktop.
Python 中文日期 格式化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
date.today().strftime(u'%Y年%m月%d日'.encode('utf-8')).decode('utf-8') | |
#输出:2012年11月27日 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment