python中withopen读取时编码问题_with open utf-8-CSDN博客

网站介绍:参考博文https://blog.csdn.net/qq_36999656/article/details/79909793https://www.cnblogs.com/ArsenalfanInECNU/p/4811643.html通常情况下加上encoding=‘utf-8’解决读写编码问题,例如 with open(file[0],'r',encoding='utf-8')..._with open utf-8