我试图从json文件加载一些变量,但是找不到该文件
我试过删除文件并重新生成,重命名,移动文件,但都没有成功
def loadVar():
with open('mystica.json') as read_file:
variables = json.load(read_file)
return variables
我希望它从mystica.json
中获取值,但它给了我一个错误
FileNotFoundError: [Errno 2] No such file or directory: 'mystica.json'
Tags:
目前没有回答
相关问题 更多 >
编程相关推荐