IOError: [Errno 2] No such file or directory
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to add some informations of all the torrents file in a path to a Table of my MySQL database but it seems like i have some PATH problems. As you can see there is the full path and it even detect the "charlie.torrent" so i don't really understand what is the problem. This is my code: #!/usr/bin/env python # -*- coding: utf-8 -*- import mysql.connector import bencode import binascii import hashlib import os import sys conn = mysql.connector.connect(host="localhost",user="root",password="root", database="TORRENTS") cursor = conn