使用os.path中basename和dirname来获取目录名

NoSuchKey