标签: python unicode text-files writing superscript
使用Python 2.7,我想将包含上标数字字符(从0到9)的unicode文本写入文本文件。
with open('outfile.txt', 'w') as fh: fh.write(u'\u2070\u00B9\u00B2\u00B3\u2074\u2075\u2076\u2077\u2078\u2079'.encode("UTF-8"))
但是,只有字符1,2和3在上标中。所有其他字符都是这样写的?< 81>? 你能帮助我吗? 非常感谢您的回复。