2021年7月28日

自动化-Yaml文件读取函数封装

摘要: 1.文件布局 2. 打开文件修改读取方式为w load函数加载文件 class ReadConfiYaml: def __init__(self,yaml_file): self.yaml_file=yaml_file def read_yaml(self): with open(self.yaml 阅读全文

posted @ 2021-07-28 09:54 平凡之测 阅读(307) 评论(0) 推荐(0) 编辑

自动化-Yaml文件写入函数封装

摘要: 1.文件布局 2. 打开文件修改读取方式为w dump函数写入文件 写入中文 使用allow_unicode=True class ReadConfiYaml: def __init__(self,yaml_file): self.yaml_file=yaml_file def write_yaml 阅读全文

posted @ 2021-07-28 09:42 平凡之测 阅读(202) 评论(0) 推荐(0) 编辑

导航