Created
November 27, 2012 07:17
-
-
Save yin8086/4152905 to your computer and use it in GitHub Desktop.
Python 中文日期 格式化
This file contains 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
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