关于python3.7读取txt文件输出繁体字的处理办法

with open("文件路径","rb") as f:

  a=f.read()

  print(a.decode("utf-8"))

  f.close()

问题主要出在编码方式上

猜你喜欢

转载自www.cnblogs.com/hlprogrammer/p/12824486.html