http://www.runoob.com/python/att-string-center.html 当字符串是中文时,有时候没居中,这时候可以用 空额字符串代替: str.center(width,chr(12288))