def _template_to_readable_yml(param_path):
    """模板yml文件中包含花括号等占位符，无法直接读取，需要添加引号使它可读
    :return: 返回临时的文件地址
    """
    lines = []
    with open(param_path, 'r') as f:
        while True:
            line = f.readline()
            if not line:
                break
            sp = line.split(':', 1)
            if len(sp) != 2:
                lines.append(line)
                continue
            value = sp[1].strip()
            if '{' in value and not (value.startswith('"') or value.
                startswith("'")):
                value = '"{}"'.format(value)
            line = ': '.join([sp[0], value])
            lines.append(line)
    temp = param_path + '.format.tmp.yml'
    with open(temp, 'w') as f:
        f.write('\n'.join(lines))
    return temp
