【发布时间】:2018-11-07 03:05:09
【问题描述】:
默认情况下,print(chr(195)) 在位置 195 ("Ã") 处显示 unicode 字符 如何打印出现在code page1251 中的chr(195),即。 “Г” 我试过了:print(chr(195).decode('cp1252')) 和各种 .encode 方法。
【问题讨论】:
-
感谢大家的帮助,我现在有了打印代码页的程序:trinket.io/python3/f269e4371b
标签: python unicode character-encoding codepages