特牛网址导航

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
标签:with open utf-8