读取配置文件 读取函数 import json def getConfig(filePath): with open(filePath,"r",encoding="UTF-8") as jsonFile: config = json.loads(jsonFile