feat: 初版
This commit is contained in:
9
loadYaml.py
Normal file
9
loadYaml.py
Normal file
@ -0,0 +1,9 @@
|
||||
import yaml
|
||||
|
||||
def loadYaml(path):
|
||||
file = open(path, encoding='utf-8')
|
||||
configData = file.read()
|
||||
file.close()
|
||||
|
||||
config = yaml.safe_load(configData)
|
||||
return config
|
Reference in New Issue
Block a user