byStarTW says to YSITD # coding: utf-8 import locale locale.setlocale(locale.LC_CTYPE, 'chinese') import time import os print ("今天是" + time.strftime("%Y 年 %m 月 %d 日")) os.system ("pause")