50 Star 317 Fork 78

celaraze / any-to-excel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
yaml_class.py 264 Bytes
一键复制 编辑 原始数据 按行查看 历史
Famio 提交于 2020-08-19 18:22 . 开源释出
import yaml
import os
def get_yaml_data(yaml_file):
# 打开yaml文件
file = open(yaml_file, 'r', encoding="utf-8")
file_data = file.read()
file.close()
# 将字符串转化为字典或列表
data = yaml.load(file_data)
return data
Python
1
https://gitee.com/celaraze/any-to-excel.git
git@gitee.com:celaraze/any-to-excel.git
celaraze
any-to-excel
any-to-excel
master

搜索帮助