19 lines
347 B
Python
19 lines
347 B
Python
|
import yaml
|
||
|
|
||
|
|
||
|
def load_table(filepath) -> dict:
|
||
|
try:
|
||
|
with open(filepath, encoding='UTF-8') as f:
|
||
|
modules_data = yaml.load(f, yaml.FullLoader)
|
||
|
except Exception as e:
|
||
|
print(e)
|
||
|
|
||
|
return modules_data[0]['params']
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
param_list = load_table()[0]['params']
|
||
|
|
||
|
print(param_list[0])
|
||
|
|