l0n0lutils 1.0.14
一些好用的函数和类

# 一些好用的函数和类

## 1.配置文件
### yaml_file yaml 格式的配置文件
config.yaml
```
config.yaml
host: localhost
port: 123
```
config.xlsx<br>
![biaoge]

测试代码
```python

from l0n0lutils.files import *


config = simple_load_config(yaml_file)
print(config.get("host"))
print(config.get("port"))


config = simple_load_config(xl_file)
print(config.get(1))
print(config.get(2))
print(config.data)


config = simple_load_config(xl_kv_file)
print(config.get(1))
print(config.get(2))
print(config.data)

```
输出结果：
```
localhost
1234
{'id': 1, 'a': 'asdf', 'b': 1.2, 'c': 4}
{'id': 2, 'a': 'adsf', 'b': 2.2, 'c': 5}
{1: {'id': 1, 'a': 'asdf', 'b': 1.2, 'c': 4}, 2: {'id': 2, 'a': 'adsf', 'b': 2.2, 'c': 5}, 3: {'id': 3, 'a': 'fda', 'b': 3.2, 'c': 6}, 4: {'id': 4, 'a': 'dae', 'b': 4.2, 'c': 7}}
asdf
adsf
{'int': 'string', 1.0: 'asdf', 2.0: 'adsf', 3.0: 'fda', 4.0: 'dae'}
```

### xl_file excel格式的配置文件





[biaoge]:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUsAAACaCAIAAACvwP33AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABePSURBVHhe7Z0LcxXVloD5E84vSFHFVE0RyrGo1IVbcCmIFuhoKSrItUSF+GKQTERQ44zivTxEwImAiQQIiLleYiADuWB4BISIKAkBQ54kp/GkZ36Gs3b37u69+3W604/Tq8/6iir7dU56rb2+s/fp3qed9eJn//e/BEHki98NyHCCyCHcbzKcIHIJ95sMJ4hcwv0mwwkil3C/yXCCyCXcbzKcIHIJ95sMJ4hcwv0ui+EnT558kEcgLh5hvqC4cKHHxf0mw2OETMAFGZ4UZDguKC5cVJDhilLoPPLnOUcvTCkK35QkSVeMqnbVV1XN1qiqmlNds2Tlhk/PDBb57sRIzYSpn040rl4yr7pmxcubGr7q5VsTI7X2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