python IOError: [Errno 22] invalid mode ('r') or filename: 如果你是报这个错误,可能是因为你的文件路径中的中文字符太多的缘故。 你可以将路径或者文件名称改为英文试试。