DDNS
DDNS copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
在顶级目录运行,出现题目中的错误,在src目录正常运行。请修改一些说明。
我改成这样了
def getConfigJson(): cur_path = os.path.split(file)[0] + '/config.json' with open(cur_path) as file: jsonStr = json.loads(file.read()) return jsonStr
需要安装两个SDK库,一个是阿里云核心SDK库,一个是阿里云域名SDK库; 阿里云核心SDK库:pip install aliyun-python-sdk-core 阿里云域名SDK库:pip install aliyun-python-sdk-domain 装了再运行就 OK 了