📜  如何在 python 代码示例中读取 unicode

📅  最后修改于: 2022-03-11 14:45:42.502000             🧑  作者: Mango

代码示例1
import codecs
with codecs.open('unicode.rst', encoding='utf-8') as f:
    for line in f:
        print repr(line)