python3 中文文件读取 f = open(filePath, "r") r = f.read() text = str(r.encode('utf-8'), encoding = "utf-8")